Hello guys.
In my script, i have the following code:
echo "The tarfile contains these directorys"
tar -tf file.tar > tarlist.txt
cat tarlist | awk -F/ '{print $1 "/" $2}' | nl
echo "Enter path of the directory you want to extract or just press enter to extract everything: "
read path... (1 Reply)
Is there a way to preform check if the parameters that was send with the command awk -f `file_name.awk` `input_file` before even it gets to the BEGIN section (i have tested a try to check in the BEGIN it doesn't let ,you must make it on the section that after the BEGIN) and then decide if the... (1 Reply)
Hi All,
I have two solaris servers.
Please tell me what all parameters i can check to find out the difference between two servers.
how to differentiate based on H/W,S/W etc
like i have two servers
spdwa013 $ uname -an
SunOS spdwa013 5.8 Generic_117350-61 sun4u sparc SUNW,Sun-Fire-480R
... (1 Reply)
Okay, not sure if it can be done, I would think it could be done and I'm just having a hard time with it.
fun_close_wait(){
ipVar="${1} ${2}"
portVar=`cat "${5}" | cut -d' ' -f 1`
for ip in $ipVar
do
for port in $portVar
do
netstatVar=`netstat -n | grep... (4 Replies)
Hi,
I have a script that takes two parameters. I would check the script to run if these parameters are to null or come with the correct data.
If those parameters are to null, display a message, so if they come with two facts that are incorrect.
As you might see that?
Thx (1 Reply)
$ ls
monkey.txt
banana.csv
tree.txt
$ myscript monkey.txt tree.txt
All extensions ARE alike.
$ myscript *txt
All extensions ARE alike.
$ myscript monkey.txt banana.csv
All extensions are NOT alike.
$ myscript *
All extensions are NOT alike.
My brain has given up; what's the simplest... (11 Replies)
Hi
I have a script that reads a directory name, and then prints all de items in that directory. Now that works, but I want to check on the parameters to be sure that the user has write just 1 parameter, and if not, than the script closes. (7 Replies)
hi all,
i write a script in ksh but i have a problem
I want to check the number of parameters
while ]
do
echo "Inserisci la macchina che vuoi restorare o scrivi fine per terminare lo script, puoi restorare" $a "client: "
read CLIENT
echo $CLIENT
the variable... (1 Reply)
I would like to grep the final set of fit parameters from a gnuplot log file to form columns that look like this.
a_1001 b_1001 x_1001
a_1002 b_1002 x_1002
a_1003 b_1003 x_1003
. . .
. . .
. . .
a_1250 b_1250 c_1250
At... (8 Replies)
Hi,
There is an Informatica tool through which unix scripts can be called. Now the requirement in my project is that a parent script calls a child script but this parent script has to be called through the Informatica tool.
In Parent script I'm using
TEMP=`getopt -o x:y: -l area:,volume:... (1 Reply)
Discussion started by: Panna
1 Replies
LEARN ABOUT NETBSD
pam_radius
PAM_RADIUS(8) BSD System Manager's Manual PAM_RADIUS(8)NAME
pam_radius -- RADIUS PAM module
SYNOPSIS
[service-name] module-type control-flag pam_radius [options]
DESCRIPTION
The RADIUS service module for PAM provides authentication services based upon the RADIUS (Remote Authentication Dial In User Service) proto-
col.
The pam_radius module accepts these optional parameters:
use_first_pass
causes pam_radius to use a previously entered password instead of prompting for a new one. If no password has been entered then
authentication fails.
try_first_pass
causes pam_radius to use a previously entered password, if one is available. If no password has been entered, pam_radius prompts
for one as usual.
echo_pass causes echoing to be left on if pam_radius prompts for a password.
conf=pathname
specifies a non-standard location for the RADIUS client configuration file (normally located in /etc/radius.conf).
nas_id=identifier
specifies a NAS identifier to send instead of the hostname.
template_user=username
specifies a user whose passwd(5) entry will be used as a template to create the session environment if the supplied username does
not exist in the local password database. The user will be authenticated with the supplied username and password, but his cre-
dentials to the system will be presented as the ones for username, i.e., his login class, home directory, resource limits, etc.
will be set to ones defined for username.
If this option is omitted, and there is no username in the system databases equal to the supplied one (as determined by call to
getpwnam(3)), the authentication will fail.
nas_ipaddr[=address]
specifies a NAS IP address to be sent. If option is present, but there is no value provided then IP address corresponding to the
current hostname will be used.
FILES
/etc/radius.conf The standard RADIUS client configuration file for pam_radius
SEE ALSO passwd(5), radius.conf(5), pam(8)HISTORY
The pam_radius module first appeared in FreeBSD 3.1. The pam_radius manual page first appeared in FreeBSD 3.3.
AUTHORS
The pam_radius manual page was written by Andrzej Bialecki <abial@FreeBSD.org>.
The pam_radius module was written by John D. Polstra <jdp@FreeBSD.org>.
BSD October 28, 2002 BSD