[Vienna-pm] Krauses Problem mit system in Linux
Jozef Kutej
jozef at kutej.net
Wed May 13 01:09:13 PDT 2009
nagy wrote:
> Der returnwert ist 256, dass will mir nichts sagen. Google kann mir auch
> nicht helfen, aber vielleicht bin
printf "child exited with value %d\n", $? >> 8;
# from http://perldoc.perl.org/functions/system.html
$ perl -le "print 256 >> 8"
1
> Der Ausdruckt funktioniert auf der Commandline.
hast du das wie "webserver user" probiert?
> print system('sudo -u xxxx -p xxxxx /etc/rc3.d/S86tomcat8181 stop');
print system('sudo -u x -p x /.../S86tomcat8181 stop > /tmp/blah 2>&1');
dann etwas interessant dann im /tmp/blah?
j
More information about the Vienna-pm
mailing list