Reputation
Top tag
Next privilege 5 Rep.
Participate in meta
Badges
0 0 0
Impact
~940 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Jan
31
comment Howto get exit code of a script started in screen session
Hey thank you very much so far, that kind of helped but I have still a little problem. screen -dmS name sh -c "{ rsync -av /mySource /myTarget 2>&1 ; } > /tmp/rsync-status" Assuming that /mySource is not existant, rsync exits with exit code 23 and stdout and sterr are written to /tmp/rsync-status. What I would like to achieve is, that there is only stderr without stdout written to the file? I tried it like in the example below but unfortunately it does not work out: screen -dmS name sh -c "{ rsync -av /mySource /myTarget 2> ; } > /tmp/rsync-status" In that case the file is n
Jan
30
asked Howto get exit code of a script started in screen session