Ask a Question related to FreeBSD, Design and Development.
-
Joachim Dagerot #1
Bash script programming. Sending commands to a 'screen' session
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.
Joachim Dagerot Guest
-
php+bash script
hello, can anyone give me any hints about running proccesses in linux from php level. i'd like php script run bash-script witch search some data... -
problem using bash variables with command-line perl in bash script
Hi! I have a problem with variables when using command-line perl in a bash script. The script should update a date (in 2003-10-10 form) if the... -
bash script help
okay, i want a script i want in bash to log into a telnet session and use a file temp.txt to get the user name something like: telnet -l... -
bash: can I cd from a script
On Wed, Jul 23, 2003 at 11:17:58AM +0100, David selby wrote: That's right, you can't do that. 'export' exports the variable to subprocesses,... -
bash: esc space not recognised in cat script ?
Hello again, more thorny bash escaped space problems ... in $_tox is a file called "this is a test" .... Below is the portion of code that is...



Reply With Quote

