On Mon, 2005-04-25 at 23:11 +1000, Mike Dewhirst wrote:
Ken Schneider wrote:
On Mon, 2005-04-25 at 20:06 +1000, Mike Dewhirst wrote:
I know this isn't strictly SuSE but I'd like a spot of help if anyone has the time :) TIA
I want to set a couple of environment variables at the beginning of a bash script
Ken - thanks for your response. My remaining question is - how do I set them? Googling indicated this should work ...
#!/bin/bash setenv ISC_USER xyz setenv ISC_PASSWORD 999ans
... but it returns setenv command not found. Looking at the man entry it seems setenv is a function to be called from a program. Is there an equivalent which can be called from a script?
ISC_USER=xyz ISC_PASSWORD=999ans As I said, look through scripts that are on your system. You will find examples of many different things you will need to use. You may want to buy a book on shell scripting as well. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge