09-28-2011
sorry of the dummy question:
if [ "${XSTAT}" -gt 0 ]; then
is -gt means not equal to 0?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Guys,
I was just wondering if anybody can help me with this problem.
OK, how we can get a value back from PL/SQL Script (not stored procedure/function)
See the below example: (for example aaa.sh)
#!/bin/ksh
VALUE=`sqlplus -s user/password@test_id <<EOF
@xxx.sq
EOF`
echo $VALUE
... (7 Replies)
Discussion started by: Shaz
7 Replies
2. Shell Programming and Scripting
How to find out whether the command I executed is successful or unsuccessful(at commandlinet)
Eg:
say i execute the following command at command line
rm *
How do i find out whether my previous command is a success or failure.
Thankyou.
Best Regards,
Ram. (1 Reply)
Discussion started by: ramky79
1 Replies
3. Shell Programming and Scripting
hi all
my system is linux red hat
i have a script that runs some object .
the object return some code to the system
i see the code by writing echo $?
i want to ask in the script if $? equals 14
how shell is do that in the script
thanks (3 Replies)
Discussion started by: naamas03
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'.
I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode'... (0 Replies)
Discussion started by: manas6
0 Replies
5. Shell Programming and Scripting
Hi Guys,,
I am having a unix script which is running the DB2 Insert command.
For the insert command, there were no records to be updated.
SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a
query is an empty table. SQLSTATE=02000
+ + echo 1
STAGE_RC=1
+ ]
... (6 Replies)
Discussion started by: mac4rfree
6 Replies
6. Shell Programming and Scripting
Hello folks,
I have a question that if i type ls command and type echo $? it always show "0", how i could do this change that when i type ls it will show me 1, actually i want to change the return code of commands from 0 to 1.
Thanks
Bash (5 Replies)
Discussion started by: learnbash
5 Replies
7. HP-UX
Hi
I'm writing a shell script that connects to oracle database and fires query to check the availability of data in a table. In case of no data found then what will be the return code and how to handle in that in variable. Kindly provide with an example for better understanding... Thanks... (1 Reply)
Discussion started by: ksailesh
1 Replies
8. Shell Programming and Scripting
Folks -
Firstly, I do apologize that my first post here is a question. I am quite familiar with UNIX since our application is running on it. We are trying to automate a few things on our end and I am challenged with a task in hand that requires UNIX scripting. I am totally a newbie in UNIX... (4 Replies)
Discussion started by: sk72
4 Replies
9. Shell Programming and Scripting
Hello,
I am woring on a script where I am getting strange situation.This script actually fetch the source code and tar that code and send to NAS location.This code resides in MKS tool...and we are fetching the source code on checkpoint label basis and script is working fine.First it synch the... (0 Replies)
Discussion started by: anuragpgtgerman
0 Replies
10. Shell Programming and Scripting
I am using mutt on ksh Unix to send emails to addresses plucked from the database. If the "To:" email address is not longer valid and so the email is not sent to the "To:" recipient, but is sent to the valid cc address, I need to be able to get an error code returned to the shell script so that... (3 Replies)
Discussion started by: jzuber
3 Replies
LEARN ABOUT NETBSD
bootparams
BOOTPARAMS(5) BSD File Formats Manual BOOTPARAMS(5)
NAME
bootparams -- boot parameter database
SYNOPSIS
/etc/bootparams
DESCRIPTION
The bootparams file specifies the boot parameters that diskless(8) clients may request when booting over the network. Each client supported
by this server must have an entry in the bootparams file containing the servers and pathnames for its root, area. It may optionally contain
swap, dump, and other entry types.
Each line in the file (other than comment lines that begin with a #) specifies the client name followed by the pathnames that the client may
request by their logical names. Names are matched in a case-insensitive fashion, and may also be wildcarded using shell-style globbing char-
acters.
The components of the line are delimited with blank or tab, and may be continued onto multiple lines with a backslash.
For example:
dummy root=server:/export/dummy/root
swap=server:/export/dummy/swap
dump=server:/export/dummy/swap
gateway=router:255.255.255.0
When the client named "dummy" requests the pathname for its logical "root" it will be given server ``server'' and pathname
``/export/dummy/root'' as the response to its RPC request.
netra[1-5]www* root=server:/export/jumpstart/netra_www
When any client with a name matching the pattern "netra[1-5]www*" requests the pathname for its logical "root" it will be given server
``server'' and pathname ``/export/jumpstart/netra_www'' as the response to its RPC request. As this example implies, this is useful for set-
ting up Jumpstart servers for Sun clients.
NOTES
The server does not default to the localhost, and must be filled in.
FILES
/etc/bootparams default configuration file
SEE ALSO
diskless(8), rpc.bootparamd(8)
BSD
February 28, 2002 BSD