Hi,
I'd like to access a windows directory from aix with samba client.
To allow direct access (not interactive), i'm using EOF like:
smbclient \\\\winserver\\windir 'passwd' -U usersmb << EOF
cd subwindir
put myfile
EOF
The access is correct but does somebody know how to trap errors... (1 Reply)
Hello, you are an awesome crowd! You answered my last questions, thank you sooo much!
I am trying to write a korn shell script that will record the memory my application is using (HP-UX B.11.11) and I have this:
if (( $APP > $THRESHOLD ))
then
echo "Warning message will display"
cat... (2 Replies)
I have written this code:
code
echo 'Now choose the file or files you want to merge your input with: \c'
read filenames
filelist=""
for file in $filenames; do
filelist="$filelist $file"
done
echo "Now that you've chosen these files ($filelist), please start typing: "
until ; do
paste -... (2 Replies)
hi,
in a shell script i came accross the following bit of code
1.shift $(($OPTIND - 1))
2.if ; then
3. cat << EOF >&2
4.Usage: $0 lockfilename
5.EOF
6. exit 1
7.fi
I am not able to understand the meaning of lines(1,3,5).
Can any one of u tell me the purpose of above said lines.... (1 Reply)
Hello all,
I have unix file that ends with the following EOF '9999999999'
I want to remove the '\n' character after EOF. What is the command that should be included in the script, before sending the file?
will this work:
$ echo "<99999999999>\c" >> <filename>
thanks in advance. (3 Replies)
I'm trying to connect to oracle with the following code in the script:
checksqlerror{
if
echo $1
exit
fi
}
$SQLPLUS username/password@schemaname
checksqlerror "failed to connect to oracle"
If I'm passing wrong schema name,instead of executing checksqlerror it stops and expects user... (2 Replies)
How can I write EOF into a file?
I tryed to do as follows:
size=sizeof(EOF);
end_of_file=EOF;
write(fdMutexRichieste, &end_of_file, size);
But it does non work correctly,
becouse in the next cicle (using lseek(..., SEEK_END) of my code it seems to ignore my EOF and use the LAST... (5 Replies)
Hey!
Can I write a routine that allows me to in a txt file check line by line until the end of file?
something like
until do
---some code---
done
maybe it is a stupid question but I never learned shell scripts and I need this :p
thanks in advance (1 Reply)
# cat ./xx.sh
#!/bin/sh
cat <<EOF >> /tmp/111
#!/bin/sh
for eth_device in \`ifconfig |awk '/eth/{print $1}'\`
do
dhclient \$eth_device
done
EOF
# ./xx.sh
./xx.sh: line 8: warning: here-document at... (3 Replies)
Discussion started by: yanglei_fage
3 Replies
LEARN ABOUT DEBIAN
rmcpping
RMCPING(8) System Manager Commands RMCPING(8)NAME
rmcpping - send RMCP Ping to network hosts
SYNOPSIS
rmcpping [OPTION...] destination
DESCRIPTION
rmcpping uses the RMCP Ping request datagram to elicit an RMCP Pong response from a remote host. The utility can be used to verify if a
remote host supports RMCP or IPMI. The initial starting sequence number will be randomized. rmcpping will return 0 to the environment if
it receives atleast 1 response from the remote host. Otherwise, it exits with a value of 1.
OPTIONS
The following options are available
-h Output help menu.
-V Output version.
-c count
Stop after sending count packets.
-i interval
Wait interval seconds between sending each packet. The default is to wait for one second between each packet.
-I interface address
Set source address to specified interface address. Argument may be numeric IP address or name of device.
-t timeout
Time to wait for a response, in seconds. Default is five seconds.
-v Verbose output.
-s num Specify an initial starting sequence number. The default is to use a random initial sequence number.
-d Turn on debugging.
KNOWN ISSUES
It has been observed that some remote BMCs can get "confused" and delay packet responses if duplicate packets (with duplicate sequence num-
bers) are sent in succession very quickly. There is no known way to cleanly deal with a "confused" BMC other than the wait awhile.
Unlike ping(8), local network devicess (e.g. 127.0.0.1) cannot be "pinged".
REPORTING BUGS
Report bugs to <freeipmi-users@gnu.org> or <freeipmi-devel@gnu.org>.
COPYRIGHT
Copyright (C) 2007-2012 Lawrence Livermore National Security, LLC.
Copyright (C) 2003-2007 The Regents of the University of California.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
ORIGIN
Command and manpage based off ping(8).
SEE ALSO freeipmi(7), ping(8), ipmiping(8)
http://www.gnu.org/software/freeipmi/
rmcpping 1.1.5 2012-06-15 RMCPING(8)