I'm not very familiar with the ssh command. When I tried to set a variable and then echo its value on a remote machine via ssh, I found a problem. For example,
$ ITSME=itsme
$ ssh xxx.xxxx.xxx.xxx "ITSME=itsyou; echo $ITSME"
itsme
$ ssh xxx.xxxx.xxx.xxx 'ITSME=itsyou; echo $ITSME'
itsyou
$... (3 Replies)
Sorry about the title, but this should be fairly self-explanatory.
My script seems to work, except that in the output, below, the first three lines are correct, but why does it print the additional lines 4, 5, & 6?
Script:
#!/bin/bash
while read;
do
client="$(grep -m 1 Client | awk... (3 Replies)
I need to echo a string that has double quotes in a Perl script.
#!/usr/bin/env perl
`echo Rule123 -comment \"blah blah\" >> $filename`
I'd like to get below appended to $filename:
Rule 123 -comment "blah blah"
But instead, the double quotes are lost:
Rule 123 -comment blah bah
... (1 Reply)
Hi,
I am generating html code using cshell, but i am having one problem while printing double quotes,
I need to write following code in file. where $var contains list of web address
<a href="$var">$var</a>
So i am using
echo "<a href="$var">$var</a>" > file.html
But with this " in... (4 Replies)
Unix superusers,
I am new to unix but would like to learn more about grep. I am very familiar with regular expressions as i have used them for searching text files in windows based text editors. Since I am not very familiar with Unix, I dont understand when one should use GREP with the... (2 Replies)
Hi,
Trying to change the prompt. I have the following code.
export PS1='
<${USER}@`hostname -s`>$ '
The hostname is not displayed
<abc@`hostname -s`>$ uname -a
AIX xyz 1 6 00F736154C00
<adcwl4h@`hostname -s`>$
If I use double quotes, then the hostname is printed properly but... (3 Replies)
Hi,
I have
echo "start="\2014"">/tmp/read.txt
echo "end="2014"">>/tmp/read.txt
more /tmp/read.txt
start=2014
end=2014
But i wish to have double quotes in the read.txt
start="2014"
end="2014"
Can you please tell me how ? (1 Reply)
Hi All,
I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes.
Sample Data :
"221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
Please help me to use echo or printf type of command to print some value from variable within double quotes - I want to print the double quote ( " ") also.
I tried
#!/bin/bash
VALUE=some_value
echo '{"value" : "$VALUE"}'
I was expecting the above script would produce ..
{"value" :... (3 Replies)
Discussion started by: atanubanerji
3 Replies
LEARN ABOUT REDHAT
xfindproxy
XFINDPROXY(1) General Commands Manual XFINDPROXY(1)NAME
xfindproxy - locate proxy services
SYNOPSIS
xfindproxy -manager managerAddr -name serviceName -server serverAddr [-auth] [-host hostAddr] [-options opts]
DESCRIPTION
xfindproxy is a program used to locate available proxy services. It utilizes the Proxy Management Protocol to communicate with a proxy
manager. The proxy manager keeps track of all available proxy services, starts new proxies when necessary, and makes sure that proxies are
shared whenever possible.
The -manager argument is required, and it specifies the network address of the proxy manager. The format of the address is a standard ICE
network id (for example, "tcp/blah.x.org:6500").
The -name argument is required, and it specifies the name of the desired proxy service (for example, "LBX"). The name is case insensitive.
The -server argument is also required, and it specifies the address of the target server. The format of the address is specific to the
proxy service specified with the -name argument. For example, for a proxy service of "LBX", the address would be an X display address
(e.g, "blah.x.org:0").
The -auth argument is optional. If specified, xfindproxy will read 2 lines from standard input. The first line is an authoriza-
tion/authentication name. The second line is the authorization/authentication data in hex format (the same format used by xauth). xfind-
proxy will pass this auth data to the proxy, and in most cases, will be used by the proxy to authorize/authenticate itself to the target
server.
The -host argument is optional. If xfindproxy starts a new proxy service, it will pass the host specified. The proxy may choose to
restrict all connections to this host. In the event that xfindproxy locates an already existing proxy, the host will be passed, but the
semantics of how the proxy uses this host are undefined.
The -options argument is optional. If xfindproxy starts a new proxy service, it will pass any options specified. The semantics of the
options are specific to each proxy server and are not defined here. In the event that xfindproxy locates an already existing proxy, the
options will be passed, but the semantics of how the proxy uses these options are undefined.
If xfindproxy is successful in obtaining a proxy address, it will print it to stdout. The format of the proxy address is specific to the
proxy service being used. For example, for a proxy service of "LBX", the proxy address would be the X display address of the proxy (e.g,
"blah.x.org:63").
If xfindproxy is unsuccessful in obtaining a proxy address, it will print an error to stderr.
SEE ALSO
proxymngr (1), Proxy Management Protocol spec V1.0
AUTHOR
Ralph Mor, X Consortium
X Version 11 Release 6.6 XFINDPROXY(1)