garbuck at westnet.com.au
Tue Sep 19 08:44:36 AWST 2017
This is going to seem pretty basic, but I don't know the correct words
to search for the answer.
I need to write a quick script to start a program, exit and leave the
I know at the command line you put "&" at the end to return the command line.
I believe "fi" makes a script exit. But I get a warning message
"(transmission-gtk:*processnum*):WARNING **:Couldn't connect to
accessibility bus: Failed to connect to socket /tmp/dbus-OHNORYryZL:
./starttorrent: line 2: syntax error near unexpected token 'fi'
./starttorrent: line 2: 'fi'
And here's the funny thing.. Despite the warning, it works. If I
remove the "fi", it starts, the warning is the same except the lines
referring to "fi" are missing and the script doesn't exit. But it
still starts transmission.
I also tried
transmission-gtk & (and without the &)
But it works as though the "fi" was there.
I guess at the end of the day for completeness I'd start with "killall
transmission-gtk" to stop multiple instances, but I don't want to
complicate things at this stage...
Can anyone cast some light on this for me please?
More information about the plug