07-17-2008
Oh boy ..
1. What (R)DBMs system do you use?
2. What file transfer options do you have (ssh,rsync,ftp,....)?
3. What should the script do? The export and transfer?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
I am looking out for a book which will help admins to fine tune kernel & know in & out of it.. (Linux or Solaris.)
Can anyone suggest me a gud book.
thanks
gokul. (3 Replies)
Discussion started by: gokulagiridaran
3 Replies
2. Solaris
Hi all,
I have worked on HP UNIX and now i have moved to SunSolaris which i never used to work.
I am more on programming side like shell and perl scripting.
So i want to know from you experts that i need to take care or changes which i code in sun solaris in compared to HP unix.
Suggestions... (1 Reply)
Discussion started by: ravi.sadani19
1 Replies
3. IP Networking
Does ARP Request packet Contains MAC Address of dest during broadcast?
I found It So...
When i captured ARP Req Pkts on ethereal...
Rgds
-Meti (1 Reply)
Discussion started by: ashokmeti
1 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
I want to send mail in my script when i am not a super user.
Can some one help me on that ..
Regards,
Balamani (1 Reply)
Discussion started by: Balamani
1 Replies
5. Linux
Hello friends,
Assume that, I am trying to execute a "db2 connect" command from Linux shell prompt via a shell script called "sample"
sample
db2 connect to bas39
$sample
If the database is not present its should display a custom error message by catching the error message given by db2.... (1 Reply)
Discussion started by: frozensmilz
1 Replies
6. Shell Programming and Scripting
HI,
I'm using CentOS 5.1 x86_64, CPanel ..
a lot of my users used too much resource, i want to write a script to kill all of them.
Eg: LFD always notify me:
Time: Sun Apr 27 07:40:08 2008
Account: xxxx (my user)
Resource: Virtual Memory Size
Exceeded: 110 > 100 (MB)... (3 Replies)
Discussion started by: onisoc
3 Replies
7. Shell Programming and Scripting
HI all,
i have a line in a file it cantains
one;two_1_10;two_2_10;two_3_10;three~
now i need to get the output as
one;two_1_abc_10;two_2_abc_10;two_3_abc_10;three~ ( 1 should be replaced with 1_abc for two__10 , and one more thing the number of occurances of two_value_10 will be... (1 Reply)
Discussion started by: 2001.arun
1 Replies
8. Shell Programming and Scripting
My script needs user input within time period of 1 min or may be with within 30 sec.
Flow diagram:
if (user provides input within 1 min) then
script runs on the basis of user input
else
script runs on the basis of default input(hard coded in the script)
.Any help in this script is... (1 Reply)
Discussion started by: pvr_satya
1 Replies
9. Solaris
Hi Experts,
Can advise on this:
Global zone running on solaris 10, & the local zones on top running on solaris 9, but we need to patch the solaris 9 local zones & also the solaris 10 global zone.
Which should be patched first to avoid any crash in case, first local zones... (1 Reply)
Discussion started by: fizan
1 Replies
10. Shell Programming and Scripting
Hello everybody,
I have a file to split in a bit different way. My file looks like this:
My_file.dat
123333333|01|38|440X|P
384747382|32|31|440X|P
320384743|32|54|420Y|I
843739349|12|43|420Y|I
I need to split it into:
MYFILE_440X_P.dat
123333333|01|38
384747382|32|31
... (3 Replies)
Discussion started by: bijou
3 Replies
exit(1) User Commands exit(1)
NAME
exit, return, goto - shell built-in functions to enable the execution of the shell to advance beyond its sequence of steps
SYNOPSIS
sh
exit [n]
return [n]
csh
exit [ ( expr )]
goto label
ksh
*exit [n]
*return [n]
DESCRIPTION
sh
exit will cause the calling shell or shell script to exit with the exit status specified by n. If n is omitted the exit status is that of
the last command executed (an EOF will also cause the shell to exit.)
return causes a function to exit with the return value specified by n. If n is omitted, the return status is that of the last command exe-
cuted.
csh
exit will cause the calling shell or shell script to exit, either with the value of the status variable or with the value specified by the
expression expr.
The goto built-in uses a specified label as a search string amongst commands. The shell rewinds its input as much as possible and searches
for a line of the form label: possibly preceded by space or tab characters. Execution continues after the indicated line. It is an error to
jump to a label that occurs between a while or for built-in command and its corresponding end.
ksh
exit will cause the calling shell or shell script to exit with the exit status specified by n. The value will be the least significant 8
bits of the specified status. If n is omitted then the exit status is that of the last command executed. When exit occurs when executing
a trap, the last command refers to the command that executed before the trap was invoked. An end-of-file will also cause the shell to exit
except for a shell which has the ignoreeof option (See set below) turned on.
return causes a shell function or '.' script to return to the invoking script with the return status specified by n. The value will be the
least significant 8 bits of the specified status. If n is omitted then the return status is that of the last command executed. If return
is invoked while not in a function or a '.' script, then it is the same as an exit.
On this man page, ksh(1) commands that are preceded by one or two * (asterisks) are treated specially in the following ways:
1. Variable assignment lists preceding the command remain in effect when the command completes.
2. I/O redirections are processed after variable assignments.
3. Errors cause a script that contains them to abort.
4. Words, following a command preceded by ** that are in the format of a variable assignment, are expanded with the same rules as a vari-
able assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not
performed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
break(1), csh(1), ksh(1), sh(1), attributes(5)
SunOS 5.10 15 Apr 1994 exit(1)