Re: need help with a shell script

2003-09-04 Thread Dave Ihnat
I see that you've found a solution to your original query. However, I'd just like to comment on a general script technique. Especially when executing programs with a security aspect, such as su, it's a very good idea to give the entire absolute path to the program, e.g., instead of just 'su', '/b

Re: need help with a shell script

2003-09-04 Thread steffen . grunewald
On Thu, Sep 04, 2003 at 11:25:27AM -0500, Dana Holland wrote: > [EMAIL PROTECTED] wrote: > > >Try to add an extra '-' after 'su' > > Thanks! That was it - works great now! Perhaps I should also explain why. Simply giving "su" a command to execute will run it in the environment of the calling pr

Re: need help with a shell script

2003-09-04 Thread Dana Holland
[EMAIL PROTECTED] wrote: Try to add an extra '-' after 'su' Thanks! That was it - works great now! There's also a deactivate option available... I saw that, but it didn't have enough info - does that simply prevent logging in? Would it affect the functioning of this vacation program in any wa

Re: need help with a shell script

2003-09-04 Thread Michael Gargiullo
On Thu, 2003-09-04 at 11:50, Dana Holland wrote: > I've written a shell script which will create a new user, then create a > .forward and .vacation.msg file in the new user's home directory. > Within this script, I'm trying to automate the initialization of the > vacation program - that's wher

Re: need help with a shell script

2003-09-04 Thread steffen . grunewald
On Thu, Sep 04, 2003 at 10:50:22AM -0500, Dana Holland wrote: > I've written a shell script which will create a new user, then create a > .forward and .vacation.msg file in the new user's home directory. > Within this script, I'm trying to automate the initialization of the > vacation program -

need help with a shell script

2003-09-04 Thread Dana Holland
I've written a shell script which will create a new user, then create a .forward and .vacation.msg file in the new user's home directory. Within this script, I'm trying to automate the initialization of the vacation program - that's where I'm running into problems. I've tried it two ways. 1.