10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys...was trying to use while loop and a sentry to prompt user input again if an invalid option was entered...but somehow I got a "while" unmatched error...The code is as below:
#!/system/bin/sh
finsh=0
while
do
echo "Please select an option: "
echo "1. One" echo "2. Two" ... (4 Replies)
Discussion started by: Ryuinferno
4 Replies
2. Shell Programming and Scripting
first of all.. sorry about all the question bombing.. im bored atm so im currently playing around with sh scripting hehe
s = `expr ls -s Documents | grep Music | awk '{ print $1 }' `
t = `expr $t + $s`
it give syntax error
s not found
t not found lol...
any idea why? (7 Replies)
Discussion started by: Nick1097
7 Replies
3. Shell Programming and Scripting
Hi gurus,
I have a question, need some of your inputs...
I have a command like this :
export LINE_COUNT=`wc -l test.dat | awk '{print $1}'`
echo $LINE_COUNT --- > gives me 2 which is fine as the file has 2 lines.
This works fine if the file test.dat is present but in case... (3 Replies)
Discussion started by: calredd
3 Replies
4. UNIX for Dummies Questions & Answers
Hello All,
Below is the control card or the file which i am using in shell script to mget files from remote machine via FTP.
bash-3.00$ cat ftp_ALD_DAC.log
open 10.xx.yy.zzz
user D00000187 nb8tr4xx2u
ascii
cd prod/out
lcd /Internal_Impact_TT_Input
mget ALD*.TXT
bye
Below is the... (0 Replies)
Discussion started by: Ariean
0 Replies
5. Programming
Hello, the following is generating a error at the line "tmprintf(&tmBundle, _TMC("{0}"),Prompt);"... a bit lost as I am diving into this debug...
Thank you in advance...
int H_YesNo(TMCHAR *Prompt, int DefVal)
{
TMCHAR YesNo = '\0';
tmprintf(&tmBundle, _TMC("{0}"),Prompt);
while... (3 Replies)
Discussion started by: reelflytime
3 Replies
6. Filesystems, Disks and Memory
I have an HP NetServer LH3 which is exhibiting an error during the boot process. I am getting the following messages, none of which I've seen before
1. WARNING: SCSI adapter: Cannot install intr vecno=12 type=4 IPL=5 Vector 12 is private
2. WARNING: "TEST_UNIT_READY" Command timed 11 seconds... (0 Replies)
Discussion started by: slant-40
0 Replies
7. Shell Programming and Scripting
I used set -n FS.sh to check for syntax errors. No problems. I run the script with set -x and set -v with the following error:
find: bad option ;
find: path-list predicate-list
Reviewing the verbose output everything is read correctly. The files transfer and the script completes. I can't seem... (4 Replies)
Discussion started by: BigSky
4 Replies
8. Programming
What does the following mean:
state_field state_abvr = {
"AL","ALABAMA",
"AK","ALASKA",
.
.
.
};
extern state_field state_abvr;
issues we
I am facing following compilation issue
bosdf9d1:root make
CC -I/bto/bcs/shared/include -I/bto/sys/BCS/usr/include ... (1 Reply)
Discussion started by: jaganreddy
1 Replies
9. Shell Programming and Scripting
hi all,
i've got a script that takes in what a user enters (multiple entries) and then joins them all together and appends this to a file. what i want to happen now is the terminal should display "record saved" if the save to the file is successful, if it isn't just display the standard unix... (2 Replies)
Discussion started by: wazzag
2 Replies
10. UNIX for Dummies Questions & Answers
Every night I recieve this message:
Verify Report - Broken/missing symbolic links
File With Discrepancies : 213
Total Discrepancies : 213
Can anyone explain what this is and how I can resolve it?
Thanks,
DJ At Work (4 Replies)
Discussion started by: djatwork
4 Replies
xpacommon(7) SAORD Documentation xpacommon(7)
NAME
XPACommon - Getting Common Information About Access Points
SYNOPSIS
There are various kinds of generic information you can retrieve about an XPA access point by using the xpaget command.
DESCRIPTION
You can find out which XPA access points have been registered with the currently running XPA name server by executing the xpaget command to
retrieve info from the XPA name server:
xpaget xpans
If, for example, the stest test server program is running, the following XPA access points will be returned (the specifics of the returned
info will vary for different machines and users):
XPA xpa gs 838e2f67:1262 eric
XPA xpa1 gs 838e2f67:1266 eric
XPA c_xpa gs 838e2f67:1267 eric
XPA i_xpa i 838e2f67:1268 eric
Note that access to this information is subject to the usual XPA Access Control restrictions.
Each XPA access point supports a number of reserved sub-commands that provide access to different kinds of information, e.g. the access
control for that access point. These sub-commands can be executed by using xpaset or xpaget at the command line, or XPAGet() or XPASet()
in programs, e.g:
xpaget ds9 -acl
xpaget ds9 -help
xpaget ds9 env FOO
xpaset -p ds9 env FOO foofoo
With the exception of -help and -version, reserved sub-commands are available only on the machine on which the XPA server itself is run-
ning.
The following reserved sub-commands are defined for all access points:
o -acl get (set) the access control list [options: host type acl, for set]
The 'xpaset' option allows you to add a new acl for a given host, or change the acl for an existing host. See XPA Access Control for
more information. This access point is available only on the server machine.
o -env get (set) an environment variable [options: name (value, for set)]
The 'xpaget' option will return the value of the named environment variable. The 'xpaset' option will set the value of the names vari-
able to the specified value. This access point is available only on the server machine. (Please be advised that we have had problems
setting environment variables in static Tcl/Tk programs such as ds9 running under Linux.)
o -clipboard set(get) information on a named clipboard
Clients can store ASCII state information on any number of named clipboards. Clipboards of the same name created by clients on differ-
ent machines are kept separate. The syntax for creating a clipboard is:
[data] | xpaset [server] -clipboard add|append [clipboard_name]
xpaset -p [server] -clipboard delete [clipboard_name]
Use "add" to create a new clipboard or replace the contents of an existing one. Use "append" to append to an existing clipboard.
Information on a named clipboard is retrieved using:
xpaget [server] -clipboard [clipboard_name]
o -exec set: execute commands from buffer [options: none]
If -exec is specified in the paramlist of an 'xpaset' call, then further sub-commands will be retrieved from the data buffer.
o -help get: return help string for this XPA or sub-command [options: name (for sub-commands)]
Each XPA access point and each XPA sub-command can have a help string associated with it that is specified when the access point is
defined. The -help option will return this help string. For XPA access points that contain user-defined sub-commands, you can get
the help string for a particular sub-command by specifying its name, or else get the help strings for all sub-commands if not name is
specified.
o -ltimeout get (set) the long timeout value [options: seconds|reset]
The 'xpaget' option will return the value of the long timeout (in seconds). The 'xpaset' option will set the value of the long time-
out. If "reset" is specified, then the timeout value will be reset to the default value.
o -nsconnect set: re-establish name server connection to all XPA's [options: none]
If the XPA Name Server (xpans) process has terminated unexpectedly and then re-started, this sub-command can be used to re-establish
the connection. You use it by sending the command to the [name:port] or [file] of the access point instead of to the XPA name (since
the latter requires the xpans connection!):
xpaset -p 838e2f67:1268 -nsconnect
See xpans for more information.
o -nsdisconnect set: break name server connection to all XPA's [options: none]
This sub-command will terminate the connection to the XPA Name Server (xpans), thereby making all access points inaccessible except
through their underlying [name:port] or [file] identifiers. I forget why we added it, it seems pretty useless.
o -stimeout get (set) the short timeout value [options: seconds|reset]
The 'xpaget' option will return the value of the short timeout (in seconds). The 'xpaset' option will set the value of the short time-
out. If "reset" is specified, then the timeout value will be reset to the default value.
o -remote set: register xpa with remote server [options: host[:port] [acl]] [-proxy]
This sub-command will register the XPA access point with the XPA name server (xpans) on the specified host (which must already be run-
ning). The specified host also is given access control to the access point, using the specified acl or the default acl of "+" (meaning
the remote host can xpaset, xpaget, xpainfo or xpaaccess). If the acl is specified as "-", then the access point is unregistered. See
Communication Between Machines for more information on how this sub-command is used.
o -version get: return XPA version string [options: none]
The version refers to the version of XPA used to define this access point (currently something like 2.0).
You can add your own reserved commands to all XPA access points by using the XPACmdAdd() routine, passing the XPA handle returned by XPA
XPAGetReserved(void) as the first argument. Note again that these will only be available on the machine where the XPA service is running.
SEE ALSO
See xpa(7) for a list of XPA help pages
version 2.1.14 June 7, 2012 xpacommon(7)