in reply to Re^4: Create a desktop icon for perl program in ubuntu?
in thread Create a desktop icon for perl program in ubuntu?

so a terminal window (like bash) is popping up and disappearing

This means your program probably isn't running at all (or terminating early), is there a setting to keep the window open (there should be)?

  • Comment on Re^5: Create a desktop icon for perl program in ubuntu?

Replies are listed 'Best First'.
Re^6: Create a desktop icon for perl program in ubuntu?
by yedukondalu (Acolyte) on Dec 01, 2015 at 09:31 UTC

    I hope the program is running..I tried removing the perl in Exec path in the above program..then an errors comes.. Details: Failed to execute child process "/home/yathayed/yedukondalu/programs/perl/advanced/tk/hotel_bill.pl" (No such file or directory)

      Well that is interesting, does the file exist, is the shebang valid? Does the file run if you type its name from a shell?

      Try a valid path to perl with a space dash dash like #!/usr/bin/perl --

        Shebang is valid.program runs fine from my terminal.

      Also try a simple program or oneliner like   perl -e" use Tk; tkinit()->MainLoop "