Register a domain and help support LQ
Go Back > Blogs > path_finder
User Name


Uncategorized Entries with no category

Shell with many functions

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

Write a shell script named 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 4163 Comments 0 path_finder is offline

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
The 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 1752 Comments 0 path_finder is offline


All times are GMT -5. The time now is 03:44 PM.

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