Hi Tony,

> The commands in 'pem' work ok if I type them
> at the command line. Why will they not work
> in a script?
> 
> Red Hat Linux release 7.1 (Seawolf)
> Kernel 2.4.2-2 on an i686

 Please update your system.

> # ls -l pem
> -rwxrwxrwx   1 root     root           94 Jul  8 19:44 pem
> 
> # cat pem
> /usr/sbin/useradd -g popusers -s /bin/false merves02
> echo d2ksd6b | passwd --stdin merves02
> 
> # ./pem
> 'seradd: invalid user name `merves02
> 'asswd: Unknown user name 'merves02

 Well, once again in the last few hours, your script contains dos crlf's. 
dos2unix pem should fix it.

Bye,
Leonard.

--
How clean is a war when you shoot around nukelar waste?
Stop the use of depleted uranium ammo!
End all weapons of mass destruction.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to