Find the answer to your Linux question:
Results 1 to 3 of 3
I got something to work in terminal! WOOHOO! Now can I make a batch file which will do the operation much the same as old DOS style batch files? note ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    30

    MAking a batch file ???


    I got something to work in terminal! WOOHOO!

    Now can I make a batch file which will do the operation much the same as old DOS style batch files?

    note - [output omitted] inserted in place of actual output for ease of typing.

    Here's what I did:

    root@sysresccd /root % mkdir /mnt/sdb
    root@sysresccd /root % mount /dev/sdb1 /mnt/sdb
    root@sysresccd /root % ls -l
    [ls output omitted]
    root@sysresccd /mnt/sdb % cd ibmbackup
    root@sysresccd /mnt/sdb/ibmbackup % cd ibmpart
    root@sysresccd /mnt/sdb/ibmbackup/ibmpart % dd if=/dev/sda of=backup-sda.mbr count=1 bs=512
    [output omitted]
    root@sysresccd /mnt/sdb/ibmbackup/ibmpart % ls -l
    [output omitted]

    Thanks

    Ron

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    878
    Advanced Bash-Scripting Guide

    Don't be intimidated by word advanced. It is good for starters, too.

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    30
    Thanks

    Lots of reading!

  4. $spacer_open
    $spacer_close

Posting Permissions

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