06-29-2011
Can you please explain with a script for example.
I am a beginner. Your explanation is not clear for me.
Thanks in Advance!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I am in the process of writing a shell script to transfer files to a remote directory. Is there a method to determine the success or the failure of the ftp process.
Regards
Jim (4 Replies)
Discussion started by: JimJim
4 Replies
2. UNIX for Dummies Questions & Answers
Hi
I want to know if the email address in the mailx exists or not
Eg:
Mailx -s "Subj" hello@ab.com
How do I know if the email address is a valid one??? (4 Replies)
Discussion started by: superprogrammer
4 Replies
3. UNIX for Advanced & Expert Users
I am working on a project that will use sendmail to send reports form a shell script. Since these reports are very important and go out at all times of the day, I need to be able to capture if sendmail is unsuccessful or errors out. The emails may have multiple recipients with multiple attachments.... (2 Replies)
Discussion started by: ssracer
2 Replies
4. AIX
My hardware is a JS21 IBM server with AIX 5.3L. I can console into the blade but at times I am able to telnet to a LDAP server on port 389, but then there are times I can not telnet to the port. I can't ping the server when I experience this issues. My application I support goes down in flames and... (3 Replies)
Discussion started by: billet75
3 Replies
5. Shell Programming and Scripting
Hi friends,
I'm newbie to shell script. I wanted to create a shell script which able to write a result for all the telnet connection status. For example, from this machine I want to test the telnet connection (total 100+ servers) with this machine.
Any idea how to write this shell script?... (16 Replies)
Discussion started by: yhcheong
16 Replies
6. Shell Programming and Scripting
Hi
I wanna automate the telnet process for port connection..
# telnet 0 port_number
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
If its connected how to make it disconnect automatically..
And how to check for success or failure.. (0 Replies)
Discussion started by: ningy
0 Replies
7. Shell Programming and Scripting
Does anyone know how to write the results (success and failure) to a file. I am using TCSH on a Solaris machine. I have the following code for a successful SCP...could someone help me add to this so it caputres failures also?
CODE SO FAR (received from a previous post):
scp sourcefile.txt... (3 Replies)
Discussion started by: thibodc
3 Replies
8. UNIX for Dummies Questions & Answers
How do i check success status of a sed command execution i have the below script not sure if it is right approach to check status of execution using a function.
Also it looks like in the below sed command even if the search string doesn't exist in the file it is returning status as success as i... (6 Replies)
Discussion started by: Ariean
6 Replies
9. Red Hat
Hey guys/gals,
I have a Fedora 19 box with a 26TB RAID set mounted as my home directory
# mount|grep home
/dev/md0 on /home type xfs (rw,relatime,seclabel,attr2,inode64,logbsize=128k,sunit=256,swidth=3584,noquota)
I have been able to add/modify user accounts using VNC +... (4 Replies)
Discussion started by: jjinno
4 Replies
10. UNIX for Beginners Questions & Answers
Here is the shell script which need to trigger a stored procedure and when the record count is 0 then it should capture in the log that 0 duplicate records are found and if it's more than 0 then log with no of records. Also if there is any sqlerror then it should write the same in the log file and... (17 Replies)
Discussion started by: senmng
17 Replies
LEARN ABOUT DEBIAN
fence_rsb
fence_rsb(8) System Manager's Manual fence_rsb(8)
NAME
fence_rsb - I/O Fencing agent for Fujitsu-Siemens RSB
SYNOPSIS
fence_rsb [OPTION]...
DESCRIPTION
fence_rsb is an I/O Fencing agent which can be used with the Fujitsu-Siemens RSB management interface. It logs into an RSB device via tel-
net and reboots the associated machine. Lengthy telnet connections to the RSB device should be avoided while a GFS cluster is running
because the connection will block any necessary fencing actions.
fence_rsb accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent.
fence_rsb can be run by itself with command line options. This is useful for testing.
Vendor URL: http://www.fujitsu.com
OPTIONS
-a IPaddress
IP address or hostname of the RSB device.
-h Print out a help message describing available options, then exit.
-l login
Login name.
-n telnet_port
The port number on which the telnet service listens.
-o action
The action required. This can be reboot (default), off, on, or status.
-p password
Password for login.
-S path
Full path to an executable to generate the password for login.
-v Verbose. Print informational messages to standard out.
-V Print out a version message, then exit.
STDIN PARAMETERS
agent = < param >
This option is used by fence_node(8) and is ignored by fence_rsb.
ipaddr = < hostname | ip >
IP address or hostname of the device.
telnet_port = < port number >
The port number on which the telnet service listens.
login = < param >
Login name.
option = < param >
The action required. This can be reboot (default), off, on, or status.
passwd = < param >
Password for login.
passwd_script = < param >
Full path to an executable to generate the password for login.
SEE ALSO
fence(8), fence_node(8)
fence_rsb(8)