[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shell scripting



>   in dos, that "addmailuser" file will simply contain "adduser --conf
> /etc/mailuser.conf %1" where %1 is the first parameter that it sees, that
> is, the name of the user i want to add ... but how do u do this in linux ???

   $1 is the first parm with bash.  For simple scripts, see the files in
/etc/init.d for an example.

   Though I don't know of a good DOS batch to shell script tutorial, there are
a good bit of docs on general scripting.  Do a search of the web and you'll no
doubt turn up some info (and of course there are tons of texts on the topic).

-- 
 Regards,  | <redwards@golgotha.net>   | Upgrade your old legacy
 .         | <http://www.golgotha.net> | WindowsNT machines to Linux!
 Randy     |                           | See http://www.linux.org


Reply to: