will display 0 if "some command" was successful. It will show 1 (or another non-zero number) if the command failed. Usually commands also display error messages when something goes wrong.
I have a script which loads data files into Oracle and then moves each file into a 'processed' directory when each file has finished loading.
Last night I found that the script was failing on the mv statement (with a return code 2) and the following message,
mv: cannot access... (1 Reply)
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)
How do I evaluate the result of a command assigned to a variable??
Example:
var1=`cmd`
rc=$?
rc will be the result of the assignment rather than cmd since it executes after. How do I evaluate the result of the command itself?
Cheers..:confused: (2 Replies)
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)
How to do I get the return code of a subroutine in a perl module if invoke the subroutine as standalone,
I have an module say TestExit.pm and in that i have a subroutine say myTest() which is returns 12, if i were to call the subroutine from
command line like
CASE:1 ( Without an explict... (2 Replies)
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)
Hello all,
This bellow code works. I'm just trying to find a simplified way to achieve this. I'm sure there is an easier way and it must be to simple for me to find.
Verify that the OS version is 6.1. If not exit the script. Of course if i just put a && exit 1 at the end of the ssh... (11 Replies)
Hi,
Does anyone here can guide me to understand how is return code works in a parent-child relation with a simple example?
I have a request to build the script with return code in a child script, but i want to understand how does child script can return a code to the parent, stated if its... (4 Replies)
Hi all,
I am new in linux script, and I have the code below
#!/bin/bash
CMD="shuf -i 1-5 -n 1"
$CMD
echo $CMD
exit 0
if I run the $CMD, it will return me a shuffle value. However, I need to save the return value of the shuffle, and use it later on. I tried for example print the... (3 Replies)
Hi,
Can anyone help me how to exit a shell script if a unix command inside does not return any value for 10 seconds?
The scenarios is like this.
I want to login to a application using shell script where the connection string is mentioned.but suppose this connection string is not... (10 Replies)
Discussion started by: arijitsaha
10 Replies
LEARN ABOUT DEBIAN
ekglogs
EKGLOGS(1) General Commands Manual EKGLOGS(1)NAME
ekglogs - a logs lister for EKG
SYNTAX
ekglogs [ options ] < ~/.gg/history
DESCRIPTION
ekglogs reads ekg logs on standard input and prints them out nicely formatted on standard output.
OPTIONS -t don't display time at all
-d don't display day changes
-x always print nicknames
-v never display nicknames (by default: print nicknames unless either `u' or `n' was specified)
-r display incoming messages' receipt time
-R like -r and align outgoing messages
-s display seconds
-S display receipt time seconds
-C display a colon between hours and minutes
-b do not display malformed lines (they start with !!!)
-a do not display status changes
-c use colourful display
-h display help message
-u UIN display only messages from/to UIN
-n NICK
display only messages from/to NICK
Options don't need to be preceded with `-', and may be concatenated.
Option `u' or `n' should be specified as last one. You should not specify both `u' and `n'.
AUTHOR
Robert Goliasz <rgoliasz@poczta.onet.pl>
SEE ALSO ekg(1)
7 September 2003 EKGLOGS(1)