View Single Post

   
  #1 (permalink)  
Old 02-19-2008, 11:57 AM
Jesse F. Hughes
 
Posts: n/a
Default Stupid question regarding btdownloadxterm.sh

Hey ho.

I'd like to edit the file btdownloadxterm.sh so that it first copies
the torrent file to ~/BitTorrent and then calls xterm as it is. This
way, if I don't finish getting the file, I can later start up from the
command line rather than find the torrent via the browser a second
time.

This should be trivial, but I just don't know how to send
btdownloadxterm.sh the file name for the torrent. If I had that, then
I could just do "cp $1 $filename". Perhaps btdownloadxterm.sh needs
to take a second argument, but then what? Is there some percent sign
code that gives the preferred name of the file?

--
Jesse F. Hughes
"It's easy folks. Just talk about my approach to your favorite
mathematician. If they can't be interested in it, they've
demonstrated a lack of mathematical skill." -- James Harris
Reply With Quote