in reply to Re: system sub routine with windows7
in thread system sub routine with windows7
Your example doesn't match mine exactly. Try:
#!/usr/bin/perl use strict; use warnings; my @args = ("glomosim", "data.in"); system(@args) == 0 or die "system @args failed: \n syscode:$? \n error +:$! \n";
ensure the location of glomosim is in your system PATH variable, or provide full paths to both the program and the input file. Also, you replied to yourself rather than anyone else. See the links I provided earlier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: system sub routine with windows7
by Njoud (Initiate) on Jun 28, 2013 at 12:30 UTC | |
by marto (Cardinal) on Jun 28, 2013 at 13:07 UTC | |
by Njoud (Initiate) on Jun 28, 2013 at 18:39 UTC | |
by marto (Cardinal) on Jun 28, 2013 at 19:36 UTC | |
by Njoud (Initiate) on Jun 28, 2013 at 20:30 UTC |