|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to wite this shell script
Hi all
I want u to help answer this question ( A shell script should be named new_database.sh and its purpose is to create a new database. It accepts two arguments, the first is SCHEMA_NAME and the second is a DATABASE_NAME. For instance, below is an example invocation of the new_database.sh script and response. $ .new_database.sh persons tutors DATABASE ‘tutors’ USING SCHEMA 'persons' HAS BEEN CREATED. The name of the database and the schema it uses should be appended to the databases.txt file. Below is an example databases.txt file: databases.txt tutors persons student persons nina_12345_grades grades intel company If either the SCHEMA_NAME does not exist or the DATABASE_NAME already exists, then you the command prints an appropriate error message and exit. If the SCHEMA_NAME exists and the DATABASE_NAME is not already used, then the script should append the information to the end of the databases.txt file, create a new empty database file of the form DATABASE_NAME.db, and print a message that the database has been created. ) thank you. |
|
#2
|
|||
|
|||
|
How much are you going to pay for us to do your assignment?
What college or school do you go to?
__________________
-jtalerico MacBook Pro 15" 4gig ram Dell 2408wfp |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > How to wite this shell script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|