This is a discussion on displaying the executed command then echo the status within the Shell scripting forums, part of the Development/Scripting category; Hi, I have a simple question for everyone. I just need only to format a device then mount. heres the ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi,
I have a simple question for everyone. I just need only to format a device then mount. heres the sample code: echo "formatting /dev/$dev ....mkfs.ext3 /dev/$dev" mkfs.ext3 -Fq /dev/$dev mount /dev/$dev /mnt/$dev I would like to modify it that will display a msg after the task is completed. Like: formatting /dev/sda.............................................[done] If format fails, then "failed" will be displayed. my problem is how to display this in a single line just like in above. any ideas are greatly welcome. thanks, warren |
| Sponsored Links | ||
|
|
|
||||
|
wOOt
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| hda: status timeout: status=0xd0 { Busy } | surmandal | Linux hardware | 3 | 03-24-2008 09:16 PM |
| UNIX / Linux echo command examples | raj | Getting started tutorials | 2 | 12-07-2007 12:20 PM |
| avoid displaying errors while executing a script | vikas027 | Shell scripting | 4 | 10-31-2007 12:57 PM |
| Rateuo.c can not be executed | Oznur | Linux software | 3 | 09-16-2005 03:31 PM |
| exit status | Shell scripting | 8 | 09-02-2005 07:34 PM | |