LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2013, 05:32 AM   #1
tripialos
Member
 
Registered: Apr 2012
Posts: 169

Rep: Reputation: Disabled
wget options not working on kickstart script


Hi


I have made a kickstart script which works pretty well apart from its post-installation script. I have tried many things but still aint working hence i came to ask for little help

my script:
Code:
%post --nochroot --log=/mnt/sysimage/root/ks-post.log
/usr/bin/wget -r -nH  ftp://192.168.0.101:/myscript/* -P /mnt/sysimage/root/
chmod -R 755 /mnt/sysimage/root/*
cp /mnt/sysimage/root/myscript /mnt/sysimage/etc/init.d/
chmod 755 /mnt/sysimage/etc/init.d/myscript
/sbin/chkconfig myscript on

I tried all sort of variations but still not working. I cheked the ks-log and i noticed the following errors:

Code:
/usr/bin/wget: invalid option -- r                                                   
BusyBox v1.2.0 (2009.09.03-17:16+0000) multi-call binary                             
                                                                                     
Usage: wget [-c|--continue] [-q|--quiet] [-O|--output-document file]                 
                [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url          
                                                                                     
wget retrieves files via HTTP or FTP                                                 
                                                                                     
Options:                                                                             
        -c      continue retrieval of aborted transfers                              
        -q      quiet mode - do not print                                            
        -P      Set directory prefix to DIR                                          
        -O      save to filename ('-' for stdout)                                    
        -Y      use proxy ('on' or 'off')
For some reason wget option switches are not working on the kickstartscript. If i use the command on a terminal it works just fine.

any ides
 
Old 08-14-2013, 01:39 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Quote:
invalid option -- r
It's telling you what is wrong. Busybox is using an older version, or a custom version of wget that does not have the -r option.
 
1 members found this post helpful.
Old 08-16-2013, 03:14 AM   #3
tripialos
Member
 
Registered: Apr 2012
Posts: 169

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
It's telling you what is wrong. Busybox is using an older version, or a custom version of wget that does not have the -r option.
Thanks. I didnt know what busybox was nor i ever met this "term" by now. I used the wget without any options and it worked fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wget options cstrieder Linux - Newbie 3 06-19-2013 03:33 PM
wget options usef62 Linux - Software 3 07-01-2012 10:43 AM
[SOLVED] LVM Options in Kickstart in CentOS 6.2 vikas027 Linux - Server 4 01-27-2012 04:36 AM
Select options from website to initiate download from script (wget alternative?) hattori.hanzo Programming 1 11-18-2010 08:17 AM
[SOLVED] How to Write Kickstart for Menu Options? your_shadow03 Linux - Newbie 2 01-30-2010 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration