Results 1 to 4 of 4

Thread: Writing a simple script/function

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Beans
    95
    Distro
    Ubuntu 12.04 Precise Pangolin

    Wink Writing a simple script/function

    I use this command very often inorder to burn xbox games and it would be alot easier if i could just make a commannd line function where i pass it the location of the .dvd/.iso file.

    growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd=<LOCATION OF THE .ISO FILE>
    was thinking it could work something like this

    cd /home/user/desktop/FOLDER LOCATION OF ISO
    burnGame <NAME OF .ISO>.iso
    any help, or if someone wants todo it for me?
    Last edited by ksaul; June 13th, 2010 at 10:40 PM. Reason: Solved, see last post.

  2. #2
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Writing a simple script/function

    What about using a bash alias for
    Code:
    growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd=

    Add something like
    Code:
    gameburn='growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd='
    to your .bash_aliases file
    And then in the terminal just type gameburn followed by the location.
    Last edited by stinkeye; June 13th, 2010 at 04:21 AM.

  3. #3
    Join Date
    Jul 2008
    Beans
    95
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Writing a simple script/function

    Quote Originally Posted by stinkeye View Post
    What about using a bash alias for
    Code:
    growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd=

    Add something like
    Code:
    gameburn='growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd='
    to your .bash_aliases file
    And then in the terminal just type gameburn followed by the location.
    im new to ubuntu/gnome how do i do this? what you replied with is exactly what im looking for!

  4. #4
    Join Date
    Jul 2008
    Beans
    95
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Writing a simple script/function

    Did some googling and went with this method:

    Use your favorite editing program and edit ~/.bashrc

    function burnGame ()
    {
    growisofs -use-the-force-luke=dao -use-the-force-luke=break:1913760 -dvd-compat -speed=2 -Z /dev/dvd=$1
    }
    Then save the file and quit. Then go to the command line and do "source ~/.bashrc" will make the changes live.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •