02-19-2009
Quote:
Originally Posted by
Kevin1166
Will sshd and ssh do this for me?
no and yes. if you have a x11 server on your windows system -> yes. otherwise no... maybe you should give
vnc a look!
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
I recently purchased solaris 8 and I want to dual boot with
windows 2000.
What is the easiest way to install the solaris OS with the
existing windows 2000?
mogfog (4 Replies)
Discussion started by: mogfog
4 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I have already installed FreeBSD into my hard disk.
In one partition I have Windows 2000, and on another FreeBSD. I can access Windows partition from FreeBSD, but is there any way to access FreeBSD partition from Windows?
I know how to access Linux (ext/ext2) partition from Win, there is... (9 Replies)
Discussion started by: Aoidas
9 Replies
3. Shell Programming and Scripting
hey guys, i am on a box named pluto and i need to be able to log into another box named genesis. i need to be able to ssh into genesis as root and not get asked for the password. what file do i need to edit on genesis to make this happen? i searched for the .rhosts file it doesn't seem to exist.... (1 Reply)
Discussion started by: Terrible
1 Replies
4. Solaris
I have a Sunfire V240 installed with Solaris 10.
They are networked together and connected to a hub. They can ping eachothers IP address.
I am trying to get a GUI from the V240 to display on the Windows 2000 box.
Can someone please give me some step-by-step instructions on how to achieve... (11 Replies)
Discussion started by: acme420
11 Replies
5. Shell Programming and Scripting
Dear Friends,
I need to transfer few files from a Windows 2000 server to Sun Solaris system, connected in the same network. This copy should be done as a batch job without asking for password to be entered every time. How to make this possible ???
At present I am using cygwin in my laptop... (4 Replies)
Discussion started by: ks_reddy
4 Replies
6. Solaris
hi gyus, i'm trying to login trough GUI (using login screen, instead to login to locahost I login to remote host) from on Solaris 10 to another one.
You know, I see the remote host in the host list, but It's not possible to login since the screen keeps black and after that get back to the former... (3 Replies)
Discussion started by: daninx
3 Replies
7. Solaris
Hi all;
I'm looking for free access to the Solaris operating system. I have no way to install at home (even on a virtual machine).
I been developing BOINC project (OProject@Home: site: oproject.goldbach.pl). I would like to compile and test programs on Solaris.
Can someone provide a... (9 Replies)
Discussion started by: Rysiu
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)