Reputation: 2951
I would like to start perl.pl within a cygwin terminal such that perl.pl starts in a new cygwin terminal.
What is the best way to do this?
So far I've tried to use system(perl.pl) and exec(perl.pl), but that runs the perl script within the windows command line, not cygwin.
Upvotes: 0
Views: 362
Reputation: 385496
As you can see by viewing the properties of the shortcut, the command that opens the terminal is
mintty.exe -i /Cygwin-Terminal.ico -s 105,60 -
So you'd run
system('mintty perl.pl');
Upvotes: 2