LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > path_finder
User Name
Password

Notices

Uncategorized Entries with no category
Old

Shell with many functions

Posted 04-14-2010 at 02:35 PM by path_finder

Write a shell script named daily-backup.sh that does the following:
- Discovers all users defined on the system excluding system and services users.
- For each of these users, locates the home directory and create an compressed archive for this directory (.tar.gz).
- Creates a global archive that contains all archived users home directories and save it in /var/backup.
- The script should be daily run at 1AM and for each execution, the global archive name should reflect...
LQ Newbie
Posted in Uncategorized
Views 3194 Comments 0 path_finder is offline
Old

Shell Script writing (URGENT)

Posted 04-14-2010 at 02:04 PM by path_finder

Write a shell script that swaps the contents of two files. The shell script should be called swap.sh.
The swap.sh script should take two arguments as input. They indicate the two files to be swapped. You should check that the proper number of arguments have been passed and that the filenames passed on the command line have the proper permissions set. You should also check that any temporary files used during the execution of the script do not exist. If any of these checks fail, then print...
LQ Newbie
Posted in Uncategorized
Views 1524 Comments 0 path_finder is offline

  



All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration