How do I run a command in script from a particular directory?
I need to write to a Notes/Domino log file - the command has to be run from the domino data directory... eg:
cd /notes/domino
/opt/lotuus/bin/server -c "###### log message ######"
i.e. I have to change into /notes/domino first, as the server program relies on files in this dir.
How do I do this in a script? I know I can add the lines as above to the script, but is this reliable?
Dave
Last edited by davee; 08-07-2003 at 02:57 AM.
|