LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-05-2009, 10:25 PM   #1
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Rep: Reputation: 40
Need help with mirror-slackware-current.sh


I downloaded Eric's mirror-slackware-current.sh script today and when I run this commandline, I get an error
Code:
mirror-slackware-current.sh -a x86_64 -i -l /tmp -p -o DVD -v
Error is:
Code:
[: 331: DVD: unexpected operator
Error! Invalid iso_type '-o DVD' passed as parameter!
Interesting thing is that I get this error even if I remove the -o DVD and go with the default.

I'm using this on a different machine without a problem. Any thoughts?
 
Old 06-05-2009, 11:09 PM   #2
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
Are you running the script on a non-Slackware machine by chance?
 
Old 06-05-2009, 11:34 PM   #3
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by chess View Post
Are you running the script on a non-Slackware machine by chance?
Indeed, I am. I want to try to use Unetbootin to create a bootable USB from the ISO. I couldn't find a slackbuild for it, so I'm on my kubuntu laptop.

I guess that's a problem?
 
Old 06-05-2009, 11:41 PM   #4
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
Perhaps. On Slackware, /bin/sh is symlinked to bash. Eric's script uses /bin/sh in the shebang. On other systems, most notably Debian and Ubuntu, /bin/sh is symlinked to the dash shell and not bash. As such, some scripts may not work with dash.

Try entering this command to find out what /bin/sh is linked to on your system:

ls -la $(which sh).

The fix should be to simply edit the shebang in Eric's script and make it /bin/bash.
 
Old 06-06-2009, 12:07 AM   #5
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Lightbulb

Quote:
Originally Posted by chess View Post
Perhaps. On Slackware, /bin/sh is symlinked to bash. Eric's script uses /bin/sh in the shebang. On other systems, most notably Debian and Ubuntu, /bin/sh is symlinked to the dash shell and not bash. As such, some scripts may not work with dash.

Try entering this command to find out what /bin/sh is linked to on your system:

ls -la $(which sh).

The fix should be to simply edit the shebang in Eric's script and make it /bin/bash.
Thanks for the lead. I'll fix it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Check your friendly neighbor -current mirror... Alien Bob Slackware 31 12-15-2007 12:17 AM
Keeping a local mirror of packages current KaYoS Slackware 14 10-23-2007 05:25 AM
Which mirror keeps me current? AGer Slackware 5 10-10-2007 09:29 PM
slackware current question on the current kernels davimint Slackware 3 06-03-2007 07:39 AM
Mirror of current changelog? Coldfirex Slackware 3 02-04-2003 07:30 AM


All times are GMT -5. The time now is 05:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration