Re: Stupid question regarding btdownloadxterm.sh * Jesse F. Hughes <jesse@phiwumbda.org> wrote:
> 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".
Actually, $1 _is_ the filename of the torrent file. Just add the
following line (above the last line, of course):
cp "$1" "$HOME"/BitTorrent
Georg |