12-01-2005
Quote:
Originally Posted by dj.brown
Hi All,
Can anyone point me in the right direction to change this setting?
I have no 5.3 system at hand so i can't verify it, this is just a suggestion:
"smitty devices" and have a look at the attributes of the "lft" device.
HTH
bakunin
8 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
Hello.
I'm running OpenBSD3.5 with GNOME2.4.
The problem is that the monitors flickers.
I'd like to know how to increase the vertical refresh rate.
thanks in advance. (0 Replies)
Discussion started by: sablot
0 Replies
2. Linux
Hi,
I am using fc3, and I would like to know how to increase monitor refresh rate.
I have tried "Applications" > "Preferences" > "Screen Resolution" but I can't seem to increase greater than 85Hz.
I have tried to edit /etc/X11/xorg,conf
but not sure how to...
So here is my file.
How... (6 Replies)
Discussion started by: armen
6 Replies
3. AIX
Hi.
Does anyone know if there is a command in AIX to find out your machine heat? Perhaps something to cat out of proc? (1 Reply)
Discussion started by: Sprellarinn
1 Replies
4. UNIX for Dummies Questions & Answers
I am looking for a way to issue a command or string of commands to repeatedly display new files that are written to the directory. I usually use ls -ltr to see the newest files at the bottom of the screen. I would like to automate this command to refresh what is displayed every second or so. Can... (3 Replies)
Discussion started by: skidude
3 Replies
5. AIX
Hi All,
I would like to create a script that will monitor the server if it's heavy on the processing. I have already some scripts for monitoring disk capacity, application monitoring, etc but not on the bottleneck of the server processing.
I don't know which one to measure/query.
Can you... (2 Replies)
Discussion started by: itik
2 Replies
6. AIX
hi,
I used to use MRTG monitor Redhat, CentOS.
But, i found that. I can't snmpwalk to my AIX 6.1
I want to know, how can I snmpwalk my AIX 6.1's
CPU usage, Memory usage, New TCP connection, EST. TCP connection
and the Harddisk Size....etc.
thanks. (1 Reply)
Discussion started by: virusxx
1 Replies
7. AIX
Hi Guys,
The management is being frisky about scan rate in the range of a few thousands ( 4 digit scan rates occasionally). After much research ive concluded that its ok to have high scan rates , unless it leads to swapping/ it falls above 1:4 ratio with free rate (fr:sr)
My question is:... (2 Replies)
Discussion started by: muzahed
2 Replies
8. AIX
First I need to start off by saying I've been a tech for Windows environment for almost 20 years now. With that being said, I've never touched unix/linux/aix before so all of this is new to me. If you can bare with me, I'll gladly provide any configs/logs you may need to help me.
I'm having an... (1 Reply)
Discussion started by: XRaheemX
1 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)