Posts Tagged ‘shell script’
What shell script command will allow the user to log out via script?
I’ve made a Fedora Core 2 shell script in which the user is prompted for different things he or she would like to do.
I’d like to make another selection in which the user can choose the number 3 and then the user logs out of the OS! I’ve tried logout and exit but they don’t seem to work in the script.
Any ideas? thanks.
How do I write a statement in dos using shell script to display a word?
I want to write a shell script in dos to display the word "Hello"
How do I write a script for my Linux that can show me total memory vs used memory and have it email me results?
I want to create a shell script for this but I am having a hard time figuring out commands and completing the script.
How can I make my script check if an entered subdirectory is valid?
I’m writing a shell script for class that needs to prompt the user to enter a subdirectory, If their entry is valid, it will display the contents of that directory. If it is invalid, it will throw an error message and exit.
How can I make the script check if their entry is valid without having to program each and every directory into the script?
How can i copy one or more file from a directory to another directory using Shell Script?
I am unable to write the script because i am not able to think any logic.Any help will be appreciated.
How do you break on error in a shell script?
I have a shell script that takes in a filename as an argument. If the file doesn’t exist, the error comes to the command line but how do you get the program to EXIT if it has any errors while running?