Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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]



  2. #2
    Linux Guru Segfault's Avatar
    Join Date
    Jun 2008
    Advanced Bash-Scripting Guide

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

  3. #3

    Lots of reading!

  4. $spacer_open

Posting Permissions

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