Hey,
My company is looking to bring on a Sr. UNIX Admin with Solaris 10 experience.
What are some solid interview questions I could ask about UNIX and Solaris 10 that would weed a good guy out from a bad?
Questions that don't involve long command lines would be the best.
Thanks (1 Reply)
Hey, i got a couple of questions:
What command do you need to give to find a file in your file system?
Where are the ufsboot and the kernel (unix or genunix) programs stored on disk?
How does Solaris organise different platforms?
What is the default run level?
Lastly, how do I reboot the... (3 Replies)
Hello everyone, I am brand spanking new to both Solaris and Unix. I thought I would give it a go after buying a SB2500 off ebay for a few hundred dollars.
I am having some issues that I am not sure how to correct, and I am wondering if I can get a few pointers?
The first one is that my system... (2 Replies)
Hi,
Can anyone tell me which is the good site for solaris interview questions. Let me know if anyone has some material on the same. Thanks in advance. (1 Reply)
hello,
first, I'm quite new to solaris.
I've installed solaris 10 basic (item 4 on the install-menue).
now I had to realize that I don't have any option for connecting the machine from remote. ssh isn't even installed although I've coosed 'yes' for remote access. no matter what solaris is... (10 Replies)
Today I downloaded Sun Cluster and I want to know more from someone experinced how much good is it that toy.
Yes I also downloaded a documentation and I will read it but I want to know your experience so shoot .
Probaly Jillagre has a few good stories . (1 Reply)
Is there a way I can add color to my prompts when I am navigating in Solaris 5.10? I have figured out how to add my alias's to the .profile file but adding color to just my prompts and not the output would be awesome. :wall: (15 Replies)
I am new to solaris 10.
I have a few questions
1) How do I check the current version of grub?
2) How do I update grub version
3) what version onwards supports GPT?
Thanks (2 Replies)
Hello,
I am working on building Solaris 11.3 system going to install it with SPARC 11.3 text iso then update system with 11.3 local IPS repo. Once that is all done my question is can I install non global zones on the system that are 11.0, 11.1, 11.2 and if so what is the best way to go about... (9 Replies)
Discussion started by: fly3rs
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)