09-04-2016
Quote:
Originally Posted by
DukeNuke2
What is the output of # which java on your system?
Thank you for your reply. When I get back to work on Tuesday, I will check and post the output for
# which Java. Again, thank you.
Last edited by rbatte1; 09-06-2016 at 11:50 AM..
Reason: Added ICODE tags
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello all.
I just started to use fluxbox (www.fluxbox.org) as my gui, i like the fact that it is much faster than kde. The only problem is that it doesn't support icons on the desktop nativly. If you want that ability you have to instal the fbdesk package. When i go to instal this package i get an... (0 Replies)
Discussion started by: Shifty
0 Replies
2. Solaris
dear all
there is any one can help me in a document about java install sheild in solaris (0 Replies)
Discussion started by: murad.jaber
0 Replies
3. AIX
I am not an AIX admin, but the guy that usually is has left and I am now the default person to do this stuff (scary for them). I am trying to install Java 5 on AIX 5.3, and am getting
MISSING REQUISITES: The following filesets are required by one or more
of the selected filesets listed... (5 Replies)
Discussion started by: Kirath
5 Replies
4. AIX
I have a RS/6000 B80 which just had a disk failure; I've added a new drive and am in the process of rebuilding. I have reinstalled AIX 5.2 and am now looking to begin updating.
(fyi this will be the second time I have attempted to rebuild this machine, the first time i installed ML 5200-10 and... (1 Reply)
Discussion started by: wesiman
1 Replies
5. Solaris
Hi,
I telnet to the localost in new install Sun 5.10
I get below error
I also telnet from other to this mahcine but get "access deny" after input root password.
The password is correct as I can login in console
"Not on system console
connection to unknown cloase by foregin host"
Why ,... (25 Replies)
Discussion started by: chuikingman
25 Replies
6. UNIX for Dummies Questions & Answers
I need help. My recently downloaded LINUX version won't install. Is this because of as previous OS being installed in my PC. I removed it prior to my LINUX installation and this is where problems started. (2 Replies)
Discussion started by: henzbelmont
2 Replies
7. Shell Programming and Scripting
Hi Everybody,
I am running rsync through my java application.
The Java application will sync the files with remote machine. During our connection failure testing we noticed an issue running rsync through java program. The java application which is running at source side is not receiving any... (2 Replies)
Discussion started by: MVEERA
2 Replies
8. Solaris
Hi all,
I'm quite new to Solaris and I've been searching around everywhere to try and find the root of my Oracle DB install problem. It quits immediately when it runs isainfo when it gets a return of 3md64. To me this looks like there is a typo where ever isainfo pulls it's info from, but I... (13 Replies)
Discussion started by: asilv
13 Replies
9. Gentoo
Hi Guys
I have installed latest java version 8.0, but now when I use java -version I still get an old version.
How do I correct this ?
Thanks in advance... (3 Replies)
Discussion started by: Phuti
3 Replies
10. Fedora
Hi All,
I have just downloaded fedora 27 iso and set it up in virtual box.
I want to learn Hadoop so trying to install Apache hadoop. Before all those I have to install Oracle Java 1.7.15 (as mentioned in the Apache hadoop page).
Can you please help me how to Uninstall currently installed... (6 Replies)
Discussion started by: TechGyaann
6 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)