in reply to Why doesn't system("zip -D") exclude directories?
A common error is to make bad assumptions about the current work directory.
The only difference between system() and the command line is that the shell is interactive in the later. This can affect which startup files the shell executes, which could affect stuff like aliases.
Finally, the command you're running via system might be different than the one you run from the command line. You should check the contents of the relevant variables.
And that's assuming you're running the command as the same user.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why doesn't system("zip -D") exclude directories?
by YuTsun (Initiate) on May 05, 2010 at 18:58 UTC | |
by ikegami (Patriarch) on May 05, 2010 at 22:27 UTC | |
by YuTsun (Initiate) on May 05, 2010 at 23:34 UTC | |
by choroba (Cardinal) on May 05, 2010 at 21:39 UTC | |
by almut (Canon) on May 05, 2010 at 22:48 UTC |