| Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) |
| Notice: | Welcome to the Digital UNIX Conference |
| Moderator: | SMURF::DENHAM |
| Created: | Thu Mar 16 1995 |
| Last Modified: | Fri Jun 06 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 10068 |
| Total number of notes: | 35879 |
I have a customer who wishes to use SCU to format non DEC optical
drives by means of a script file.
He is able to enter drive head sector info at present by using the
command "SCU format other" being prompted foir the additional
information
What he wants to do is use one command line in a script that contains
all this additional information - is this possible?
Ian Russell
Open Systems Group
0836 225455 / 01256 373671
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 8882.1 | write a shell script | NETRIX::"[email protected]" | Farrell Woods | Wed Feb 19 1997 10:26 | 30 |
What comes to mind is something like this: #!/bin/sh # scu -f $1 <<EOF format $2 $3 quit EOF So if this were called "foo" you could invoke it as: # ./foo /dev/rrz1c defects all In writing such a script you will no doubt want to add some error checking, like the number of parameters passed, etc. Obviously the above is just a tiny example; you will do something a bit more complicated. At the risk of sounding pedantic, a script that invokes scu with a "format" command is basically a loaded gun waiting to go off. Please leave the script in a safe place... Two things you should know about scu: one is that you can't do a "set nexus" followed by a "format unit". scu specifically disallows this. scu will also disallow (for obvious reasons) formatting a disk if any of its partitions are currently mounted. -- Farrell [Posted by WWW Notes gateway] | |||||