11-21-2010
Thanks a lot folks.
I figured it out what went wrong.
I was trying to extract the variable's value within single quotes ( ' )
'wget http://$ip/admBuilds/vADM_$build/RPMs/InSightUpdate-$rn.upd'
If you look at how wget is at work,you can notice that i am trying to use variables inside the single quoted line, which will not allow to get the value of the variables.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to make a script to use wget to find and download mp3s on a website into a directory with a name derived from that URL. So far I have:
#!/bin/sh
echo “MP3 Downloader”
echo -n "Enter full URL address of website or website subdirectory > "
read text
cd ~
mkdir $text
cd $text
... (3 Replies)
Discussion started by: Garnett
3 Replies
2. Shell Programming and Scripting
Hello All,
I need your help, i would like to know how to use ssh command in the shell scripts? and make the script continue to enter the password without user intervention
example of the normal commands written manually: # ssh 172.30.1.256 -l mxread
password: mxread
Thanks in advance (3 Replies)
Discussion started by: Dendany83
3 Replies
3. Shell Programming and Scripting
Hi All,
I am using ssh in my shell script. Can any one please suggest me option so that i can avoid the login message as below in the execution:
NOTE:
Please note that you have logged into the newer version of server "gabbro"
*******
Performing functions to this computer withe the... (6 Replies)
Discussion started by: vikash_k
6 Replies
4. Shell Programming and Scripting
Hi All,
i have two machines like x and y . my requirement is i should connect to machine Y from x through ssh connection . and do some operation such as copy and move and delete files in Y machine .
i tried with this code but it is doing in machine x only . and i need to exit from Y when... (1 Reply)
Discussion started by: rateeshkumar
1 Replies
5. Shell Programming and Scripting
How do I use the ssh command to connect to another server without the password prompt?
I use: ssh user@host and it prompts for the password.
how do I include the password in the ssh command?
alternatively, how do you execute 1 command from server A on server B?
thanks,
... (4 Replies)
Discussion started by: toughlittleone
4 Replies
6. UNIX for Dummies Questions & Answers
ssh -q <hostname> /opt/tcs/satish/tst.ksh
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh
tst.ksh has "nohup <command> & "
when i execute below script , its throwing error as
nohup can not be found
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh > log &
can someone let me... (5 Replies)
Discussion started by: only4satish
5 Replies
7. Shell Programming and Scripting
Hi, I'm trying to write a shell script checks if there is ssh command listening on port 1080 at loop back interface.
If there is, just exit nicely with exit code 0.
If not, start command: #ssh -D 1080 smsuser@10.76.172.23 ping -i 60 localhost
The ssh keys needs to be generated and... (2 Replies)
Discussion started by: Kijana_kenn
2 Replies
8. Shell Programming and Scripting
Hello eveyone.
I would like to create a simple batch with curl (or wget) to download a URL but the URL I can only download from the browser and not from shell because curl and wget won't follow the 301 redirect which I get :confused:
I tried with curl -L but no luck.
I want to hear your opinion.... (5 Replies)
Discussion started by: accolito
5 Replies
9. Shell Programming and Scripting
Hi,
I need help in wget or curl command to invoke a REST client services.
This is the format i need to send request
wget -H "tokenId: F6" -H "Authorization: Basic <64 bit encoded username:password>" -H "https://example.com" -H "Accept: application/Json" -o download.xml... (1 Reply)
Discussion started by: zen01234
1 Replies
10. UNIX for Beginners Questions & Answers
Hi, I need to join these statements for efficiency, and without having to make a new directory for each batch. I'm annotating commands below.
wget -q -r -l1 URL
^^ can't use -O - here and pipe | to grep because of -r
grep -hrio "\b\+@\+\.\{2,4\}\+\b" * > first.txt
^^ Need to grep the output... (14 Replies)
Discussion started by: p1ne
14 Replies
LEARN ABOUT DEBIAN
debpear
debpear(1) General Commands Manual debpear(1)
NAME
debpear - automatically builds and installs PEAR packages as Debian packages
SYNOPSIS
debpear [options] <pear-package-name>
DESCRIPTION
debpear is a tool to automatically create and build a Debian package out of a PHP PEAR package. It will download the PEAR package from
pear.php.net, then by looking into it, create the corresponding Debian package, and eventually also installs it.
PARAMETERS
<pear-package-name>
Defines the PEAR package name you want to install, as seen on the http://pear.php.net/ site. Make sure respect the case in the name
of the package (for example: Package_NAME).
OPTIONS
--build-dir|-b
Specify the directory where the Debian package will be built.
--verbose|-v
Makes debpear more verbose.
--channel|-c channel
Specify the URL channel of the PEAR package. Currently not implemented: please contribute!
--tarball|-t tarball --pkg-version|-pv pkg-version [ --wget|-w URL ]
Do not use "pear download" to optain the PEAR package from upstream authors. Instead, use tarball and use pkg-version when building
the package. Eventually also download the tarball from URL using wget before building.
--install|-i
Install the resulting debian package in your system. Note that you must be root to use this option. If you aren't root, then debpear
will try to get root using sudo.
EXAMPLE
debpear -i Auth_RADIUS
This will create a php-auth-radius package in ./build-area, and automatically install it. Because it's written in the package.xml
shipped with Auth_RADIUS at pear.php.net, php-auth-radius will depend on php5-radius.
debpear -t current.tgz -pv 1.3.1 -w http://downloads.jasig.org/cas-clients/php/current.tgz CAS
Downloads cas-clients from http://downloads.jasig.org/cas-clients/php/current.tgz, as current.tgz in the current directory, then
builds it as if it was downloaded as CAS-1.3.1.tgz by "pear download".
IMPORTANT
Note that the debian/copyright file generated by debpear isn't good enough for redistribution of the created packages. You should
carefuly review the PEAR package license before doing so. Also, debpear has been created for convenience, but it will never replace
the manual work of an experienced Debian maintainer for creating PEAR packages. It can, however, be used to create a template pack-
age quickly, before a careful review, in order to save time building a Debian PEAR package.
AUTHORS
debpear has been written by Thomas Goirand <zigo@debian.org>, and is maintained inside the PKG PHP PEAR Debian team, that can be
reached at: <pkg-php-pear@lists.alioth.debian.org>.
debpear(1)