Linux / UNIX Tech Support Forum
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 free or login to your existing account and remove all advertisements. |
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 | ||
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UNIX / Linux echo command examples | raj | Getting started tutorials | 8 | 11-15-2009 02:18 AM |
| hda: status timeout: status=0xd0 { Busy } | surmandal | Linux hardware | 3 | 03-24-2008 08:16 PM |
| avoid displaying errors while executing a script | vikas027 | Shell scripting | 4 | 10-31-2007 11:57 AM |
| Rateuo.c can not be executed | Oznur | Linux software | 3 | 09-16-2005 02:31 PM |
| exit status | Shell scripting | 8 | 09-02-2005 06:34 PM | |