I have a shell script which takes at the command prompt options like
ss1.sh -F SCOTT -T JOHN
F- From User
T- To User
I want to pass the From User(SCOTT) Value to another script
ss2.pls (This script runs a PL/SQL Program). Depending on the FromUser value in the ss1.sh script i have to... (4 Replies)
I have wrriten a script to call sql script to do some work in database. However, the script couldn't be executed. The only information was: ksh: ./updt_attrib.ksh cannot execute. Please help me to identify where the problem is. I post script here for your reference. Thanks a lot.
#!/bin/ksh
... (8 Replies)
Hi All,
I'm giving input of four variable. I'm using this script for network field, so I'm defining the example on the same way.
Example Input: $1 =ind00m1 $2=Gi1/1 $3=10.0.0.1 $4=Connectivity from 1 to 2
Applies to following line:
object=$2 msg_grp=SNMP node=$1 msg_text="IF Down $2 $3... (2 Replies)
# for i in `cat oo`;do ls -ld $i;done
ls: /var/tmp/i: No such file or directory
ls: i: No such file or directory
ls: /var/tmp/ii: No such file or directory
ls: i: No such file or directory
ls: /var/tmp/iii: No such file or directory
ls: i: No such file or directory
ls: /var/tmp/iiii: No such... (2 Replies)
Hi,
I'm trying to extract information from one file to update another one and am a bit stuck.
the first file is made up of tags e.g.
<item>a@b.com</item>
jksdhfjkdsh sldkjfds l klsjdf
<item> c@d.com </item>
what i'd like to do is extract the email addresses between these tags,... (6 Replies)
Hi
I want to create a shell script with the following awk command & also get the filenames in output.
awk '/<catetcsecuretty0>/ {p=1} /<catvarlogmessages0>/ {p=0} p' *.xml
As there will be multiple outputs related to many xml files I cannot identify which output belongs to which file
... (5 Replies)
Discussion started by: sharp488
5 Replies
LEARN ABOUT NETBSD
openpam_readline
OPENPAM_READLINE(3) BSD Library Functions Manual OPENPAM_READLINE(3)NAME
openpam_readline -- read a line from a file
LIBRARY
Pluggable Authentication Module Library (libpam, -lpam)
SYNOPSIS
#include <sys/types.h>
#include <security/pam_appl.h>
#include <security/openpam.h>
char *
openpam_readline(FILE *f, int *lineno, size_t *lenp);
DESCRIPTION
The openpam_readline function reads a line from a file, and returns it in a NUL-terminated buffer allocated with malloc(3).
The openpam_readline function performs a certain amount of processing on the data it reads:
o Comments (introduced by a hash sign) are stripped, as is leading and trailing whitespace.
o Any amount of linear whitespace is collapsed to a single space.
o Blank lines are ignored.
o If a line ends in a backslash, the backslash is stripped and the next line is appended.
If lineno is not NULL, the integer variable it points to is incremented every time a newline character is read.
If lenp is not NULL, the length of the line (not including the terminating NUL character) is stored in the variable it points to.
The caller is responsible for releasing the returned buffer by passing it to free(3).
RETURN VALUES
The openpam_readline function returns NULL on failure.
SEE ALSO free(3), malloc(3), pam(3)STANDARDS
The openpam_readline function is an OpenPAM extension.
AUTHORS
The openpam_readline function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories,
the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA
CHATS research program.
BSD December 18, 2011 BSD