08-04-2007
Quote:
Originally Posted by
antani
buy
Both Tru64 and HPUX are provided by HP. They are both commercial systems and not downloadable like Solaris.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all. Anyone know what permissions or anything is needed to give users the privileges to see top statistics information ? I ask this because I have a user on which I execute top from and display just this info
load averages: 0.49, 0.47, 0.46 ... (3 Replies)
Discussion started by: fidodido
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I just got an AlphaServer DS10 in my lap with a note 'Fix it !'. It's just that I'm not very good with unix.
Anyways, it seems like the osf_boot file is missing from root. I can boot the server in singel user mode with the Tru64 5.1 cd and from there open a console window. When I checked... (0 Replies)
Discussion started by: magher
0 Replies
3. HP-UX
Hi experts,
I hope someone can help me with these simple tasks as I am new in Unix environment.
I need to create a file system for backup purpose, therefore I need to know the commands in Unix.
1) What is the command to check my disk drives to see how much available space is not allocated... (2 Replies)
Discussion started by: kingsto88
2 Replies
4. UNIX for Advanced & Expert Users
hi,
i have 10 processes running on a tru64
machine with 16 cpu. when i am checking the states of these processes
with ps command, i saw that almost never more than 3 of them are in the
R(unning) state. (generally they are in the S(leeping) state).
although there are many other processes... (3 Replies)
Discussion started by: yakari
3 Replies
5. UNIX for Dummies Questions & Answers
Hello everybody
I am new in TRU64 UNIX and i would really appreciate if somebody can help me with some info regarding the classification of the user rights of this OS.
The types of user i know from previous experience in HP-UX 11 i is the root user or the superuser, the user admn that is the... (0 Replies)
Discussion started by: adak2010
0 Replies
6. HP-UX
Hi guys,
I have a setup where I nfsmount a directory from a solaris 8 server to a Redhat linux laptop.
Machine: Redhat
Directory: /NFS_MOUNT
Machine: Solaris 8
Directory: /export/home/remote
$ mount Sol_8_Server:/export/home/remote /NFS_MOUNT
But first I have to edit the... (1 Reply)
Discussion started by: Stin
1 Replies
7. UNIX for Dummies Questions & Answers
hi i am trying to get ssh server on tru64 5.1 can anyone help? thanks ed. (1 Reply)
Discussion started by: deusprogrammer
1 Replies
8. HP-UX
Could any one tell me if there are still any versions or tru64 that are currently supported by HP.. I have been all over and my last resort should have been my first place to look. I am using Tru64 v 4.0 and am thinking about upgrading to 5.1B, But due to contract issues it has to be supported and... (3 Replies)
Discussion started by: car2nst2006
3 Replies
9. UNIX for Dummies Questions & Answers
Two part question, I was told that you can download Tru64 5.1b for free, is this true and if so where? Second part, could I load this on a XP Pro PC with vmware? (1 Reply)
Discussion started by: Troberts50
1 Replies
LEARN ABOUT DEBIAN
shell-quote
SHELL-QUOTE(1p) User Contributed Perl Documentation SHELL-QUOTE(1p)
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.8.4 2005-05-03 SHELL-QUOTE(1p)