Date: Sun, 20 Feb 2005 16:20:50 +0100 From: "Joachim Dagerot" <jd@dagerot.com> To: freebsd-questions@freebsd.org Subject: Bash script programming. Sending commands to a 'screen' session Message-ID: <200502201520.j1KFKoup004850@mail-core.space2u.com>
next in thread | raw e-mail | index | archive | help
I just accidentily wiped one of my script folders. Really no big deal, I'm not doing multiK scripts. But I had one nice script laying around. It created an additional window in a named screen session and started a bittorrentheadless session within. I do remember that it took me some days to solve this last time, and I have only been sitting three hours so far. (No, I don't recall the exact syntax). I'm struggeling with this script now: #!/bin/bash echo "Starting download: $1" screen -r p2pA -X screen "nice -n 20 /usr/local/BitTorrent-3.4.2/btdownloadheadless.py --max_uploads 4 \"$1\"" But it just don't do anything useful. If I run that line from prompt, replacing $1 with a filename, then it works. It's surely something to do with citationmarks around arguments etc. but I just don't see it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502201520.j1KFKoup004850>