I running system command on a remote box (not my favorite thing to do but I deal with it) and all the commands come back correct except for the rm command. I wrote a simple test script
This code prints "Failure" even when it is succesful and it prints "Failure" when it fails , Any help is appreciated as I don't like to just assume that the rm is working.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
Code:
#!/usr/bin/perl
if (`rm -f /tmp/travis.txt`) { print "success\n"; } else
{ print "Failure\n"; }
This code prints "Failure" even when it is succesful and it prints "Failure" when it fails , Any help is appreciated as I don't like to just assume that the rm is working.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;