script and makin' a shortcut
Hi everybody,
Can any of you help me figure this out. I just install a staroffice. Every time I wan tto rune it, I have to type "/usr/staroffice/soffice" if I'm not in the "/usr/staroffice". How to run the staroffice any where by just typing "soffice" like any other default shell program. This is my second question. I just made a symbolic link at my ".gnome-desktop". This link points to the staroffice script in the "/usr/staroffice/". Every time I double click the symbolic it ask whether to view, execute or cancel. How to make it to just run the script without asking too many question. Thanks everybody. |
To answee your first question, you could try creating a link to /usr/staroffice/soffice like this:
ln -s /usr/staroffice/soffice /usr/local/bin/soffice (then you could just type soffice). If that doesn't work, creating the following shell script in /usr/local/bin should work: #!/bin/sh cd /usr/staroffice ./soffice then once you've saved that file do chmod +x <name of the shell script file> then you can still just type soffice (if you called the script soffice, that is) |
All times are GMT -5. The time now is 12:58 AM. |