screen command issue with redirecting STDOUT
Hello,
try to do: screen -dmS test 'ls > result.txt' no result.txt file created... If I put command 'ls > result.txt' in shell script test.sh and run: screen -dmS test ./test.sh result.txt file was created and have list of files, but I need to work without shell script. My main task is to run multiple perl scripts from php web site in bacground and display perl script output in web without hangup or waiting for script to finish. If someone have better solution than screen it will be very wellcome. Thanks. |
Quote:
Code:
screen -dmS test "ls > ~/result.txt" Quote:
|
Quote:
Quote:
Code:
exec('script.pl &> log &'); |
All times are GMT -5. The time now is 06:54 PM. |