Len Jacobson Posted January 22, 2012 Report Share Posted January 22, 2012 I have a line of code that invokes the 'system()' function, and the command passed to the 'system()' function is the 'tar' command. This code works perfectly when I run it on my (Linux) production server; when I run it on the 'Uniform Server', I get an empty file as its output. Can anyone tell me why this doesn't work and if there is a way to make it work? Thank you very much. (This addendum I am adding several hours later.) My question is ridiculous. I realized shortly after posting my question (when I was no longer at home near my computer) that the 'system()' command can only execute Windows commands. Since 'tar' is not a Windows command, there is no way my code could work on the Uniform Server. Sorry for bothering people with this query. Quote Link to comment Share on other sites More sharing options...
BobS Posted January 23, 2012 Report Share Posted January 23, 2012 That's the problem when staying up too long working. Better to get some sleep! Regards,BobS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.