Elegant has asked for the wisdom of the Perl Monks concerning the following question:
$self->sys('/bin/mkdir', '-p', "$self->{tmp}/attach"); $self->sys('cmd /C mkdir', '-p', "$self->{tmp}/attach");
The first line is the original (works under linux) and the second line is what I thought was correct under Windows. However, I've never see the results of any of my commands. Is my syntax correct? I have many other cases that involve ln, rm, rm -rf, mv, which are all used in the same manner.
In case you have questions about what sys() is, it's more or less system().
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Porting Commands to Windows
by LanX (Saint) on Sep 14, 2014 at 08:15 UTC | |
by skx (Parson) on Sep 14, 2014 at 09:12 UTC | |
Re: Porting Commands to Windows
by toolic (Bishop) on Sep 14, 2014 at 11:35 UTC | |
Re: Porting Commands to Windows
by jonadab (Parson) on Sep 15, 2014 at 12:49 UTC | |
Re: Porting Commands to Windows
by stylechief (Beadle) on Sep 15, 2014 at 18:37 UTC | |
Re: Porting Commands to Windows
by sam_bakki (Pilgrim) on Sep 19, 2014 at 08:50 UTC |