clacker


Group: Members
Posts: 570
Joined: June 2004 |
 |
Posted: Dec. 31 2004,13:43 |
 |
Patrick, there are a lot of people better than me at bash shell scripts, but a first cut would be to put this text into a new file:
Code Sample | #!/bin/bash mydsl-load /home/dsl/openoffice.dsl sudo /opt/openoffice/soffice --calc |
Say you called that text file ooc, you would then make that script executable by typing chmod 777 ooc so that the script would run when you type ooc into a terminal. move it to the /usr/bin directory so that no matter where you are, the system will be able to find it. This simple script doesn't check for an already loaded openoffice.dsl which would be a nice thing to add. It would need to skip that first mydsl-load line if one of the openoffice files was present.
Another choice would be to put the openoffice.dsl in the root directory (/) and then it loads automatically at startup. Then you would only need to make a command to compress your /opt/openoffice/soffice --calc line
|