in reply to win32/unix compatible script
With regards to commandline options ... the thing I did when I had a Perl app that ran on both was to have a batchfile in Windows that had the commandline options I wanted and had it launch the Perl app. It was just simpler that way, plus it stayed within the GUI nature of Windows, to just double-click on some batchfile on the desktop.
Just as a warning, if you have an application that is a commandline app that binds STDIN and STDOUT to be descriptors, this will not work under windows. You will have to set up a telnet server, then telnet to yourself to get this descriptor behavior. There is a way to check which OS you're on (I don't remember which), then bring in the right modules to do the right thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: win32/unix compatible script
by xphase_work (Pilgrim) on Jul 13, 2001 at 23:33 UTC | |
|
Re: Re: win32/unix compatible script
by John M. Dlugosz (Monsignor) on Jul 13, 2001 at 23:43 UTC | |
by dragonchild (Archbishop) on Jul 13, 2001 at 23:58 UTC | |
by John M. Dlugosz (Monsignor) on Jul 14, 2001 at 00:09 UTC | |
by dragonchild (Archbishop) on Jul 14, 2001 at 00:13 UTC | |
by John M. Dlugosz (Monsignor) on Jul 14, 2001 at 00:34 UTC | |
|