08-17-2009
you need to use `and not '. better is to use $(command).
8 More Discussions You Might Find Interesting
1. Solaris
Ok, I attempted to apply a patch to a V440 and it bailed part way through. When I tried to patchrm the patch (after booting from CD), patchrm said that I had to fully install the failed patch before I could delete it. Since installing it killed the system forcing a boot from CD, it sounds like a... (4 Replies)
Discussion started by: BOFH
4 Replies
2. UNIX for Dummies Questions & Answers
Hello,
In order to remove a patch, I type following command;
#
#patchrm 119314-11
and following error message shown on the screen, the patch can not be removed:
Cannot find teh backout packages for 119314-11
119314-11 cannot ve backed out.
Patchrm is terminating.
WARNING: patchrm... (0 Replies)
Discussion started by: XNOR
0 Replies
3. Solaris
Hi below is my script
for((i=0;i<=$TOTAL;i++))
do
echo "IP's created are $s1.$s2.$s3.$s4"
s4=`expr $s4 + 1`
done
where s1,2,3,4 are input varibles
below error occurs while running the script
syntax error at lin 11: '(' unexpected
... (12 Replies)
Discussion started by: krevathi1912
12 Replies
4. Shell Programming and Scripting
I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends.
As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
5. Solaris
I recently installed Solaris 10 as a VM. I was using the JDS and shut down the vm when I left the office. When I rebooted today I login in at the desktop login screen and press ok but I am reverted to the console screen for a spilt second and then back to the login screen. I log in as root and my... (7 Replies)
Discussion started by: mvhoward
7 Replies
6. Shell Programming and Scripting
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Discussion started by: mrm5102
5 Replies
7. Shell Programming and Scripting
Here's my code:
awk -F '' 'NR==FNR {
if (/time/ && $5>10)
A=$2" "$3":"$4":"($5-01)
else if (/time/ && $5<01)
A=$2" "$3":"$4-01":"(59-$5)
else if (/time/ && $5<=10)
A=$2" "$3":"$4":0"($5-01)
else if (/close/) {
B=0
n1=n2;
... (2 Replies)
Discussion started by: klane
2 Replies
8. UNIX for Beginners Questions & Answers
I'm currently logged in as Root on a Solaris 10 Server for my schools department and I'm trying to figure out why 20 of my users(Students) can log into the Solaris 10 Sun Ray Oracle Server with correct username and password but then be looped back to the same log in page. I tried deleting their... (7 Replies)
Discussion started by: mwilliams21z
7 Replies
LEARN ABOUT DEBIAN
xpacmdadd
xpacmdadd(3) SAORD Documentation xpacmdadd(3)
NAME
XPACmdAdd - add a command to an XPA command public access point
SYNOPSIS
#include <xpa.h>
XPACmd XPACmdAdd(XPA xpa, char *name, char *help,
int (*send_callback)(),
void *send_data, char *send_mode,
int (*rec_callback)(),
void *rec_data, char *rec_mode);
DESCRIPTION
Add a command to an XPA command access point. The XPA argument specifies the XPA struct returned by a call to XPANewCmd(). The name argu-
ment is the name of the command. The other arguments function identically to the arguments in the XPANew() command, i.e., the send_callback
and rec_callback routines have identical calling sequences to their XPANew() counterparts, with the exceptions noted below.
When help is requested for a command access point using:
xpaget -h class:name
all of the command help strings are listed. To get help for a given command, use:
xpaget -h class:name cmd
Also, the acl keyword in the send_mode and receive_mode strings is global to the access point, not local to the command. Thus, the value
for the acl mode should be the same in all send_mode (or receive_mode) strings for each command in a command access point. (The acl for
send_mode need not be the same as the acl for receive_mode, though).
SEE ALSO
See xpa(7) for a list of XPA help pages
version 2.1.14 June 7, 2012 xpacmdadd(3)