You are not logged in.

#1 2009-04-29 22:03:54

froli
Member
From: Germany
Registered: 2008-06-17
Posts: 455

[SOLVED][REQUEST]Very simple bash script

Hello all! I need someone who could create a very simple script for me. I use growisofs to burn Xbox360 games and I use this line:

growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd=game.iso

As you can see, it's a very long line, so I can't remeber it.

So, I just need a simple script that use that line, so I won't have to type it myself.

I want something very easy. Only something that it would launch like that:

scriptname game.iso

Thanks smile

Last edited by froli (2009-04-29 22:20:14)


archlinux on Macbook Pro 10,1

Offline

#2 2009-04-29 22:14:03

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: [SOLVED][REQUEST]Very simple bash script

#!/bin/bash

growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd="$1"

That should do the trick! Just save that and chmod +x it. Then:
./scriptname game.iso

|
V That works also. Its better than mine. Mine is just too simple.

Last edited by haxit (2009-04-29 22:16:39)


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#3 2009-04-29 22:15:24

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: [SOLVED][REQUEST]Very simple bash script

#!/bin/bash

if [ -z "$1" ]; then
 echo usage: $0 image.iso
fi

growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd=$1

oops too late smile oh well

Last edited by evr (2009-04-29 22:16:16)

Offline

#4 2009-04-29 22:19:41

froli
Member
From: Germany
Registered: 2008-06-17
Posts: 455

Re: [SOLVED][REQUEST]Very simple bash script

evr wrote:
#!/bin/bash

if [ -z "$1" ]; then
 echo usage: $0 image.iso
fi

growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd=$1

oops too late smile oh well

Thank you!! It works smile


archlinux on Macbook Pro 10,1

Offline

#5 2009-04-29 22:23:26

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: [SOLVED][REQUEST]Very simple bash script

you're welcome smile

haxit wrote:
#!/bin/bash

growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd="$1"

That should do the trick! Just save that and chmod +x it. Then:
./scriptname game.iso

|
V That works also. Its better than mine. Mine is just too simple.

there's nothing wrong with simple smile I just thought i'd throw in a little stupidity checking

Offline

#6 2009-04-29 22:32:17

froli
Member
From: Germany
Registered: 2008-06-17
Posts: 455

Re: [SOLVED][REQUEST]Very simple bash script

Wow! In 15 minutes I got the answer to my question. That's a big part off why I use linux tongue

This community idea is so great!


archlinux on Macbook Pro 10,1

Offline

#7 2009-04-29 22:39:23

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [SOLVED][REQUEST]Very simple bash script

Notwithstanding the greatness of the script - but I'd rather put one liners in my .bashrc with a handy alias...


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

Board footer

Powered by FluxBB