08-23-2012
i reffered the syslogs and its giving below error at many places.
Quote:
Deferred: Connection refused by def.abc.com
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I am working on SunOS 5.10 from remote terminal using putty.
Also
echo $TERM
xterm
In vi editor when in insert mode arrow keys are not working for cursor movement instead they print A B C and D.
Please help.
thanks
ravs (7 Replies)
Discussion started by: ravashingravi
7 Replies
2. Solaris
i am using sunos 5.9.
entityname="india\/delhi"
correctpattern="<branch value=\"/`echo $entityname | tr -d '\'`/WORKAREA/\">
echo $correctpattern
the output should be
<branch value="/india/delhi/WORKAREA/">
This is working fine in command line but not working when i placed these... (1 Reply)
Discussion started by: millan
1 Replies
3. Shell Programming and Scripting
Hi All,
I am strugging with mailx.
I have a shell script which triggers mail when executed.
I have mailx utility installed in system under /usr/bin/mailx but still when that script executes i am not getting mails..any idea why strange behaviour..?
Tha:(nks in advance
Usha (2 Replies)
Discussion started by: usha rao
2 Replies
4. Solaris
i am supporting a server running Solaris 5.6.I don't know if the mail is configured on this server.
i ran the following commands and got the corresponding output.
#which mailx
/usr/bin/mailx
#ps -ef | grep sendmail
root 601 1 0 Jan 10 ? 0:01 /usr/lib/sendmail... (1 Reply)
Discussion started by: asalman.qazi
1 Replies
5. Shell Programming and Scripting
i have a file.i want to get that file to my mail.mail services are running.but still i didn't receive the mail.
i have used this command.
mailx -s file1 muraliinfy04@gmail.com < file2.txt.can anybody help me.it's urgent.I am new to unix.
actually file1 i have directed to a file2.txt (8 Replies)
Discussion started by: muraliinfy04
8 Replies
6. Solaris
Hi everyone: I have been trying to simply FTP a file over to this SunOS 5.10 (which is same as Solaris 10 now) and nothing works!
I can only Telnet to this via SSH (with my own account/uid), and I can also send simple mail out with mailx, that's all!!!
I cannot FTP to it (I think FTP... (7 Replies)
Discussion started by: steve701
7 Replies
7. Solaris
I have a situation where the system is dumping a 2g causing filesystem to fill up. We identified the source and working on a solution. However, I wanted to limit the size of the 'core' file.
Please examine the test scenario ...
cnewtonne@mars> ulimit -f 0
cnewtonne@mars> ls -ltr core*... (2 Replies)
Discussion started by: cnewtonne
2 Replies
8. UNIX for Advanced & Expert Users
Greetings,
For housekeeping, I use the following command:
find /some/path -type f -name "*log*" ! -exec fuser -s "{}" 2>/dev/null \; -exec ls -lh {} \;
It finds all log files not currently in use by a process and manipulates them.
This command always works on linux and redhat machines,... (2 Replies)
Discussion started by: dampio
2 Replies
9. Solaris
Hi All
i am trying to send a mail from SunOS to my outlook mail but it is not working neither giving any error
please suggest
# uuencode /tmp/t.txt t.txt | mailx -s test v.com
#
# uname -a
SunOS 5.9 Generic_122300-25 sun4u sparc SUNW,Sun-Fire-V440 (3 Replies)
Discussion started by: scriptor
3 Replies
10. Shell Programming and Scripting
The machine is using bash:
==================
bash -version
GNU bash, version 3.2.51(1)-release (i386-pc-solaris2.10)
Copyright (C) 2007 Free Software Foundation, Inc.
=========================
I have the following xml file. am trying to get a whole paragraph if it meets certain criteria.... (9 Replies)
Discussion started by: gilgamesh
9 Replies
LEARN ABOUT CENTOS
shell-quote
SHELL-QUOTE(1) User Contributed Perl Documentation SHELL-QUOTE(1)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.16.3 2010-06-11 SHELL-QUOTE(1)