Script problem.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Script problem.

Michael Van Der Beek

Hi Jeremy,


Found something new. Apparently you’ve mapped raw.github.com to raw.githubusercontent.com

For some reason curl does not follow the redirect and fails to get the file.

I was trying to reinstall it to a physical machine.

 

Wget does follow the redirect. I’ll be changing the script to wget  and see what happens.

 

[root@relay tmp]# curl -O https://raw.github.com/akissa/baruwa2/master/baruwa/config/sql/admin-functions.sql

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

[root@relay tmp]# wget https://raw.github.com/akissa/baruwa2/master/baruwa/config/sql/admin-functions.sql

--2014-04-28 14:38:23--  https://raw.github.com/akissa/baruwa2/master/baruwa/config/sql/admin-functions.sql

Resolving raw.github.com... 103.245.222.133

Connecting to raw.github.com|103.245.222.133|:443... connected.

HTTP request sent, awaiting response... 301 Moved Permanently

Location: https://raw.githubusercontent.com/akissa/baruwa2/master/baruwa/config/sql/admin-functions.sql [following]

--2014-04-28 14:38:25--  https://raw.githubusercontent.com/akissa/baruwa2/master/baruwa/config/sql/admin-functions.sql

Resolving raw.githubusercontent.com... 103.245.222.133

Connecting to raw.githubusercontent.com|103.245.222.133|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 501 [text/plain]

Saving to: âadmin-functions.sqlâ

 

100%[==================================================================================>] 501         --.-K/s   in 0s

 

Best regards,
Michael Van Der Beek

Support Division (Project)
Senior Systems Engineer (Team Leader)
Email: [hidden email]
Tel: +65 68586789 ext. 144
Fax: +65 64874567
URL: http://www.antlabs.com
ANTlabs on: LinkedIn Facebook Twitter

Connectivity Made Easy

The information contained in this message and any attached document(s) is intended for the named recipient(s) only. The information may be privileged and/or confidential. If you are not the intended recipient, you must not copy, disclose, disseminate or otherwise make use of the information. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message. Thank you.

 


_______________________________________________
http://pledgie.com/campaigns/12056