Sam Weisenthal
Sam Weisenthal

Reputation: 2951

call perl script in cygwin

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

Answers (2)

ikegami
ikegami

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

alex
alex

Reputation: 1304

Use command xterm:

xterm -hold -e perl.pl

Upvotes: 0

Related Questions