Sponsored Content
Full Discussion: Wget ouput to log file
Top Forums UNIX for Dummies Questions & Answers Wget ouput to log file Post 302908250 by CRChamberlain on Saturday 5th of July 2014 03:19:07 AM
Old 07-05-2014
Using
Code:
wget -o /tmp/my_log_file ...

produces
Code:
--2014-07-05 06:59:52--  https://dynamicdns.park-your-domain.com/update?host=@&domain=mysite.com&password=9736b76370874a8797bc7426f66b8165
Resolving dynamicdns.park-your-domain.com (dynamicdns.park-your-domain.com)... 199.188.202.39
Connecting to dynamicdns.park-your-domain.com (dynamicdns.park-your-domain.com)|199.188.202.39|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 234 [text/html]
Saving to: `update?host=@&domain=mysite.com&password=9736b76370874a8797bc7426f66b8165'

     0K                                                       100% 54.3M=0s

2014-07-05 06:59:53 (54.3 MB/s) - `update?host=@&domain=mysite.com&password=9736b76370874a8797bc7426f66b8165' saved [234/234]

The use of '-O' came from namecheap.com in response to the question, 'What is the required string, etc"
Quote:
First of all, you need to enable Dynamic DNS (DDNS) for the domain name. You can do it in the following way: log in to your Namecheap account, go to Manage Domains and click on the domain name. Then click on Dynamic DNS at the bottom of the left menu and enable DDNS. After that you will be able to update the IP address using the following command:

wget -O 'https://dynamicdns.park-your-domain.com/update?host=hostname&domain=example.com&password=your DDNS password'

If you need to update the root domain (i.e. 'example.com'), the value of 'host' should be @ (e.g. host=@). If you need to update 'www.example.com', the value should be as follows: host=www. Here are the exapmples for both 'example.com' and 'www.example.com':

wget -O 'https://dynamicdns.park-your-domain.com/update?host=@&domain=example.com&password=your DDNS password'

wget -O 'https://dynamicdns.park-your-domain.com/update?host=www&domain=example.com&password=your DDNS password'

Hope this helps.
I needed to output the result to a log hence the additional code.

Unless you can see anything wrong with the output to the logfile, it seems your suggestion solves the problem?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using wget to download a file

Hello Everyone, I'm trying to use wget recursively to download a file. Only html files are being downloaded, instead of the target file. I'm trying this for the first time, here's what I've tried: wget -r -O jdk.bin... (4 Replies)
Discussion started by: thoughts
4 Replies

2. Shell Programming and Scripting

download a particular file using wget

Hi All I want to download srs8.3.0.1.standard.linux24_EM64T.tar.gz file from the following website : http://downloads.biowisdomsrs.com/srs83_dist/ But this website contains lots of zipped files I want to download the above file only discarding other zipped files. When I am trying the... (1 Reply)
Discussion started by: alphasahoo
1 Replies

3. UNIX and Linux Applications

download file using wget

I need to download the following srs8.3.0.1.standard.linux26_32.tar.gz file from the following website: http://downloads.biowisdomsrs.com/srs83_dist There are many gzip files along with the above one in the above site but I want to download the srs8.3.0.1.standard.linux26_32.tar.gz only from... (1 Reply)
Discussion started by: alphasahoo
1 Replies

4. Shell Programming and Scripting

Limit ouput file on a shell script

I have this one::) doing jstack on JVM proccess. #!/bin/ksh # ---------------------------------------------------- # capture_jstack.sh <INTERVAL> <COUNT> # run jstack and capture output to a log file #----------------------------------------------------- # # scripts and logs are stored... (3 Replies)
Discussion started by: pointer
3 Replies

5. Shell Programming and Scripting

View ouput as a file

Hi all , I have a view in teradata , the ouput of that view have to be stored as a file with delimitere as '|'.Is there any possibility of doing this in unix ? Thanks in advance , Vinoth (6 Replies)
Discussion started by: vino.paal
6 Replies

6. UNIX for Dummies Questions & Answers

wget redirect file name

I am downloading a file using wget and the following is embedded in a script: wget http://www.example.com/ABCDfilename123.txt -O filename123.txt Because the 123 is incremented with every day, I need to pass the file in a parametric manner, so the filename as given after capital D. How do I... (2 Replies)
Discussion started by: figaro
2 Replies

7. Shell Programming and Scripting

Call a Perl script within a bash script and store the ouput in a .txt file

I'm attempting to write a bash script that will create a network between virtual machines. It accepts three arguments: an RSpec that describes the network topology, and two list of machines (servers and clients). I have a (working) Perl script that I want to call. This Perl script takes an RSpec... (6 Replies)
Discussion started by: mecaka
6 Replies

8. Shell Programming and Scripting

Inserting ouput into a file using redirection

Hallo Team, I would like to redirect an output from a file into another file. Here are the two commands/files. -bash-3.2$ cat lack.csv lemontwistpax -bash-3.2$ ll -ltr BW*|tail -1 -rw-r--r-- 1 mind mind 1844 Sep 25 12:06... (8 Replies)
Discussion started by: kekanap
8 Replies

9. Shell Programming and Scripting

Wget rename file

Is it possible to use a cookie transfer to a location and then rename the output? cd target_directory wget -x --load-cookies cookies.txt http://172.24.188.113/data/getCSV.csv | for file in * do mv $file $file.txt done For example, if I change the directory to C:\test and use the ... (2 Replies)
Discussion started by: cmccabe
2 Replies

10. Shell Programming and Scripting

Wget - working in browser but cannot download from wget

Hi, I need to download a zip file from my the below US govt link. https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP I only have wget utility installed on the server. When I use the below command, I am getting error 403... (2 Replies)
Discussion started by: Prasannag87
2 Replies
asadmin-stop-instance(1AS)					   User Commands					asadmin-stop-instance(1AS)

NAME
asadmin-stop-instance, stop-instance - stops the specified server instance and all the services associated with it SYNOPSIS
stop-instance [--user admin_user] [--password admin_password] [--host local_host] [--port 4848] [--local=false] [--domain domain_name] [--secure|-s]instance_name Use the stop-instance to stop the instance with the instance name specified. The stop-instance can be run both locally and remotely. The named instance must already exist within the given domain; and the instance must be running. OPTIONS
--user administrative user associated for the instance. --password administrative password corresponding to the administrative user. --host host name of the machine hosting the administrative instance. --port administrative port number associated with the administrative host. --local determines if the command should delegate the request to administrative instance or run locally. --domain name of the domain. --passwordfile file containing passwords appropriate for the command (e.g., administrative instance). --secure if true, uses SSL/TLS to communicate with the administrative instance. OPERANDS
instance_name name of the instance to be stopped. Example 1: Using stop-instance in local mode asadmin> stop-instance --local --domain domain1 server1 Instance server1 stopped Where: the server1 instance associated with the domain1 domain is stopped locally. Example 2: Using stop-instance in remote mode asadmin> stop-instance --user admin --password bluestar --host localhost --port 4848 server1 Instance server1 stopped Where: the server1 instance associated with the named user, password, host and port is deleted from the remote machine. EXIT STATUS
0 command executed successfully 1 error in executing the command INTERFACE EQUIVALENT
Server Instance page asadmin-delete-instance(1AS), asadmin-start-instance(1AS), asadmin-create-instance(1AS), asadmin-restart-instance(1AS), asadmin-start- appserv(1AS), asadmin-stop-appserv(1AS), asadmin-start-domain(1AS), asadmin-stop-domain(1AS) J2EE 1.4 SDK March 2004 asadmin-stop-instance(1AS)
All times are GMT -4. The time now is 07:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy