03-15-2007
Check for any space between '<<' and EOF at line 19
and whether 'EOF' starts exactly at the beginning of the line
These 2 Users Gave Thanks to matrixmadhan For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have created a ksh shell script and used it as a login shell for a user.
</etc/passwd>
lramirev:x:111:200:Luis:/export/home/menush:/usr/local/menush/menush
My shell script is like this:
</usr/local/menush/menush>
#!/bin/ksh
#
if ]
then
. $HOME/.profile
fi
... (8 Replies)
Discussion started by: lramirev
8 Replies
2. HP-UX
Hi,
I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone.
And its not dumping core if we run the script using "/bin/sh" instead of "ksh"
Can some body please help me how to resolve this issue.
... (9 Replies)
Discussion started by: simhe02
9 Replies
3. Shell Programming and Scripting
Friends
I have pasted a script below
d08083: cat tests
#!/bin/ksh
if
then
rm -r Last-Previous
mv Previous Last-Previous
mv Current Previous
mkdir Current
#cd Current
mv $1 Current
else
cd Current
mv "$1\$2" Current\*\
fi (4 Replies)
Discussion started by: Renjesh
4 Replies
4. Shell Programming and Scripting
Hi,
Using AIX 5.3 and Ksh.
/>ls -al /usr/bin/ksh
-r-xr-xr-x 5 bin bin 237420 Apr 10 2007 /usr/bin/ksh
/>
I recently started working for a new employer. I have written UNIX K-Shell scripts for many years and have never had this particular issue before. Its perplexing me.
I have... (2 Replies)
Discussion started by: troym72
2 Replies
5. Shell Programming and Scripting
Hi all,
I´ve already searched the forum but can´t find what i am doing wrong.
I am trying to compare two variables using ksh under red hat. The error I get is:
-ksh: .: MDA=`md5sum /tmp/ftp_dir_after_transfer | cut -d' ' -f1 `
MDB=`md5sum /tmp/ftp_dir_before_transfer | cut -d' ' -f1 `... (3 Replies)
Discussion started by: old_mike
3 Replies
6. Shell Programming and Scripting
Hello All
Nice to meet you all here in this forum,
it's my 1rst time here
i'm asking about a little issue that i face
i added a ksh script that echo " please insert your name " and store the output to a login.log file.
the script is working fine with normal telnet
but Xstart is not working... (8 Replies)
Discussion started by: islam.said
8 Replies
7. Shell Programming and Scripting
Hi,
Could anyone please shed some light on the following script lines and what is it doing as it was written by an ex-administrator?
cat $AMS/version|read a b verno d
DBVer=$(/usr/bin/printf "%7s" $verno)
I checked that the cat $AMS/version command returns following output:
... (10 Replies)
Discussion started by: dbadmin100
10 Replies
8. Shell Programming and Scripting
Hi,
I have the below KSH shell script:
#!/usr/bin/ksh
if ; then
echo "Usage: resourceSts <server>
else
if ; then source="<server>"
ssh <userid>@$source > output 2>/dev/null <<_EOF
scstat -g
_EOF
elif ; then source="<server>"
ssh... (5 Replies)
Discussion started by: chris01010
5 Replies
9. Shell Programming and Scripting
Hi,
I have an automated script which have set of sqls but when i am trying to execute the automated script by using nohup command, it is throwing an error like "Input is not UTF-8" .
And when i digged in to it, i am getting some "Â" character in the shell script.
How to avoid this!?
Thanks. (1 Reply)
Discussion started by: Samah
1 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT HPUX
priv_delset
privileges(3) Library Functions Manual privileges(3)
NAME
privileges: priv_addset(), priv_delset(), priv_ismember(), priv_isobserved(), privset_add(), privset_alloc(), privset_copy(),
privset_del(), privset_empty(), privset_fill(), privset_free(), privset_intersect(), privset_inverse(), privset_isempty(), privset_ise-
qual(), privset_isfull(), privset_ismember(), privset_issubset(), privset_subtract(), privset_union() - privilege manipulation operations
for checking and debugging purposes
SYNOPSIS
Parameters
dstp to type; points to the destination privilege set.
num type; specifies a privilege by number.
privid type; contains the ID of the privilege to be acted upon.
privname type; string that contains the name of the privilege to be acted upon.
privp Pointer to type; points to the privilege set to be acted upon.
srcp to type; points to the source privilege set.
DESCRIPTION
Adds the privilege privname to the privilege set referred to by privp.
Removes the privilege
privname from the privilege set referred to by privp.
Check whether the named privilege
privname is a member of the privilege set privp.
Checks whether the calling process observes the named privilege
privname See privileges.5 for more information on when a process observes a privilege.
Adds the privilege
privid to the privilege set referred to by dstp.
Allocates memory for a privilege set of type
but does not initialize the space. The space allocated by this routine should be released using the routine.
Copies the privilege set referred to by
srcp to the privilege set referred to by dstp.
Removes the privilege specified by
num from the privilege set referred to by privp.
Clears all privileges from
privp.
Assigns all privileges, including those not currently define on the system, to
the privilege set privp.
Deallocates the space used by the privilege set referred to by
privp. If privp is NULL, no action occurs.
Finds the privileges that the privilege sets
srcp and dstp have in common and places the results in the privilege set dstp.
Inverts the privilege set pointed to by
privp.
Checks whether the privilege set
privp is the empty set.
Checks whether the privilege sets
srcp and dstp are equal sets.
Check whether the privilege set
privp is the full set of privileges. A full set of privileges is a set with all bits set, regardless of whether the privi-
lege is currently defined on the system.
Check whether the privilege
privid is a member of the privilege set privp.
Checks whether the privilege set
srcp is a subset of the privilege set dstp.
Subtracts the privilege set referred to by
srcp from the privilege set referred to by dstp.
Checks the privileges in the privilege sets
srcp and dstp and puts any privilege that is in either set into dstp.
RETURN VALUE
and return the following values:
Successful completion.
Function failed.
is set to indicate the error.
and return the following values:
Non-zero number.
Condition is TRUE.
Condition is FALSE.
is set to indicate the error.
returns the following values:
pointer Successful completions. Returns a non-null pointer to the allocated space.
NULL pointer
Function failed. Returns a null pointer and sets to indicate the error .
ERRORS
If any of the following conditions occur, the functions fail and set
Insufficient memory available to allocate space to hold a privilege set.
The application can try again later.
Invalid argument.
SEE ALSO
priv_getbyname(3), priv_getbynum(3), priv_set_to_str(3), priv_str_to_set(3), privileges(5).
privileges(3)