I have a Jar file that I would like to run through the screen, although when I try to open the Perl script everything works fine, although when I do top, I donβt see the process in the list, it works fine if I copy the command to the session Ssh ...
This is the code I'm using:
start.pl
# !/usr/local/bin/perl
system("cd /var/server/; screen java -Xmx1024M -Xms1024M -jar jarfile.jar > /dev/null 2>&1 &");
Can someone indicate why this is?
source
share