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...
User Profile
Collapse
-
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 = ".............. ..........";... -
-
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...Leave a comment:
-
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() ;
...
No activity results to display
Show More
Leave a comment: