At 11:33 PM 2/8/2008, you wrote:
phillinux <[EMAIL PROTECTED]>:
>
> I'm trying to write a bash shell script to create user accounts that
> calls 2 functions. I can't call these functions from the script or
Why?
> the command line.
Why?
> The set command seems to show the loaded script in
> the shell (loaded with . FunctionName at command line) with other
> environmental variables. ALSO: The type command does not recognize
> the function.
[Eyes roll up in head.] What!?!
> The script and functions work on my laptop running Fedora (with one
> small glitch). Is there something I can do to my Debian server to get
> functions recognized??
This is not rocket science. Once they're sourced [but you can't
source them?!?], they're callable. They're in the environment ready
to be used.
How is it you're having a problem with this? What is it, really,
you're trying to do?
Why am creati ng a script to create users???
Answer:
I'm a teacher managing the school server. Teachers give edited MS
excel files of students to be added to the system. The script reads
the class lists and loops through account creation
Why a function???
Answer:
I was told only a function could be called recursively. The function
is called recursively to append a number to the user name when
duplicate user names are found on the system.
What do you mean by "sourced"?? Is that loading them into the environment??
That's what I'm talking about. on my laptop it works. on the server
it doesn't I don't understand why. how do you "source" a function??
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]