Hey, new here, so be nice! I'm trying to write a little script to automate the user creation process on one of our boxes. But I would like to be able to use the templates that we have set up in SAM. Is the information in these templates stored in a file somewhere, that I can reference in my script? If so, where are they?
Hello, I don't have HPUX currently handy, but I can see from "man sam" at google that :
Check those files, HTH.
Thanks for replying, unfortunately, I've already looked at those files. They don't contain any information about individual templates that you create in SAM.
I was going to start a new thread for this, but it's kind of on the same topic, so here goes.
Now that I've found that template file, I'm not sure I know how to use it. Let me give you a sample of the file:
Now I'm just learning shell scripting, so I don't know what this kind of script is called. Those can't be variables, can they, because variables can't have spaces around the equals sign! So my question is, what is the name of the scripting technique here, and how can I access those parameters in my script?
Alright, I've just learned that this little file is actually a perl script that contains a subroutine for each template, setting the parameters for the template in each subroutine.
So how do I call this file, and access the variables in these subroutines in my shell script?
Hello,
I've been doing Linux and AIX administration for years, but I'm very new to HPUX. We have an old audit process which involves someone manually using sam to generate user lists. I'd like to kill that old process with fire...
But...
After working a bit in the morning to try and pull... (3 Replies)
I have the following template codes but some normal functions too and want
to group them together.
I usually put the implementation of templates in an .ipp file. What would be a good scheme for the normal functions. Put their implementations in a .cpp file, or leave them in the .ipp file?
... (3 Replies)
I have a user name that is stored in variable $i
and i want to use that user's home dirctor in case command
something like this
find ~"$i" |while read p
do
case "$p" in
( ~"$i"/myDir )
echo "$p"
;;
(*)
esac
done
but it doesn't work
some help please (7 Replies)
I am trying to write a script that would retrieve specific information from a template. I have been trying to no avail for the longest. This is what I wrote and it's not working.
cat filename | while read F5 F6
do
if ]
then
echo
$F5 $F6
fi
done
Here is the template (filename)
CN ... (7 Replies)
How can I add a user to a specific group without using SAM? I know I can user modprpw -G, but that will overwrite any groups the user is in with the ones I specify.
I need to assume that I do not know what groups the user is already in, so I can't put them in the modprpw command. I just need... (2 Replies)
Discussion started by: paqman
2 Replies
7. Post Here to Contact Site Administrators and Moderators
Hello,
Anybody in here has any idea where I can get a template like this one for vBulletin. I have actually got my board but it just doesn't look good in the template that I have! Thanks anyway!
him (2 Replies)
Are there any web site templates on CGI that allow like this forum software user registration and profiles. I dont need forum software i just need to register and keep profiles of my users on my site. Any suggestions?
:confused:
Thank you all. (1 Reply)