how to make cron run gaim under my X session?

Mikkel L. Ellertson mikkel at infinity-ltd.com
Thu Jul 19 16:08:18 UTC 2007


Valent Turkovic wrote:
> I get an error when trying to start this script:
> 
> ./gaim-start.sh
> ./gaim-start.sh: line 5: script-file=~/gaim-start.sh: No such file or
> directory
> ./gaim-start.sh: line 20: $script: ambiguous redirect
> 
> I tried to edit line 5 and change "script-file" to "$script-file" and
> that also didn't work so I tried changing it to "$script" and it still
> doesn't work...
> 
> I don't know enough bash to troubleshoot it.
> 
> Thank you for your feedback and help Mikkel.
> 
> Valent.
> 
Please do not top post!

I should have tested the script. It does not like script-file, so
replace it with script_file. In line 20, there is a typo - it should
be $script_file instead of $script file. ($script-file with the
original value.)

Mikkel
-- 

A:  Because it messes up the order in which people normally read text.
Q:  Why is top-posting a bad thing?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070719/78360ae8/attachment-0001.sig>


More information about the fedora-list mailing list