User Profile

Collapse

Profile Sidebar

Collapse
sagarbsa
sagarbsa
Last Activity: Oct 3 '07, 03:08 AM
Joined: Sep 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sagarbsa
    started a topic Shell Script Error

    Shell Script Error

    Hii, I have a shell script to create a small dialog box to select options and give the output. But it is exiting the script without displaying anything. Can anyone help me with this

    cat > smenu
    #
    #How to create small menu using dialog
    #
    dialog --backtitle "Linux Shell Script Tutorial " --title "Main\
    Menu" --menu "Move using [UP] [DOWN],[Enter] to\
    Select" 15...
    See more | Go to post

  • sagarbsa
    replied to Segmentation error
    in C
    Hii thanks for your reply. I modified the program for better debugging and is as follows.
    #include<stdio. h>
    #include<string .h>
    #include<stdio. h>
    #include<string .h>

    int main()
    {
    #include<stdio. h>
    #include<string .h>

    char *filename() /* return filename */

    {
    static char *filenm = ".............. ..........";...
    See more | Go to post

    Leave a comment:


  • sagarbsa
    replied to Segmentation error
    in C
    No Better Luck. Same Error.
    See more | Go to post

    Leave a comment:


  • sagarbsa
    replied to Segmentation error
    in C
    Thanks for the reply. But i am still not getting the output. I added the skipgarb function also. And I am using only a file name of 6 character "myfile". The program is as follows.

    #include<stdio. h>
    #include<string .h>

    int main()
    {
    FILE *fp;
    char *filename();

    if ((fp = fopen (filename(),"r" )) == NULL)

    {
    printf ("File...
    See more | Go to post

    Leave a comment:


  • sagarbsa
    started a topic Segmentation error
    in C

    Segmentation error

    Hii,
    when I run this program using GCC there is no compilation error but I get segmentation error. Please help me

    #include<stdio. h>
    #include<string .h>

    int main()
    {
    FILE *fp;
    char *filename();

    if ((fp = fopen (filename(),"r" )) == NULL)

    {
    printf ("File could not be opened\n");
    // error_handler() ;
    ...
    See more | Go to post
No activity results to display
Show More
Working...