10-20-2011
wrtitng that main script file to read the contents from the configuration file
Quote:
Hi,
I have a configuration file name (tar_config2.sh)which has the following enteries ....
Quote:
10 /home/admin/files /home/admin/output
here
10 represents days(mofification time),
/home/admin/files represents source folder from where the files will be picked up
/home/admin/output represents whwre the files will be kept so it is a sort of destination
I was planning to move files as per the modification time (10 days) from the source folder(files) location to the destination (output),I want my main script file should read my this configuration file(tar_config2.sh) and take parameters from that...could you please suggest me what will be the command inside my main script file..?
Quote:
Originally Posted by
zaxxon
read that config file with a while loop and have it do the things inside, that you need. Maybe combine it with a find and the -mtime switch to check the date. To move files, you can use the mv command. That should be sufficient to get some tries going.
Hi,
Thanks a lot for the explnation but still not able to grasp that much , I request you if you can you show by writing that script that will read the configuration files as discussed above...it will help me in clearing my understanding..!!
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have file nodes.txt that contains node names one by one.
I'm running the following command.
/opt/OV/bin/ovet_topodump.ovpl -nodeif <nodename> -detail
Field <nodename> should take (replace) the node names from the nodes.txt one by one till last node.
Pls. give me script for... (1 Reply)
Discussion started by: ntgobinath
1 Replies
2. Shell Programming and Scripting
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies
3. Shell Programming and Scripting
Hi Experts,
I am very beginner in Bash Shell Scripting. Can anyone please guide me to create a script which should show the most busy file systems in sort basis as there are a lot of file systems on the server.
I was told this task to be done by my IT lead and I must have to do this in... (3 Replies)
Discussion started by: naw_deepak
3 Replies
4. Shell Programming and Scripting
Hey All,
I am seeking for the script which will do as follows,
1) Login on one Unix server "Server1"
2) Want to access other Unix server "Server2", and want to get the information as, on one go.
df -k /tmp
df -k /
df -k "any file system"
3) Re-direct the output to "space.txt" on... (12 Replies)
Discussion started by: ravinderkodan88
12 Replies
5. UNIX for Dummies Questions & Answers
How to find how many parameters are required to run a Perl script? (1 Reply)
Discussion started by: Lakshman_Gupta
1 Replies
6. HP-UX
Hi All
I had installed sudo in HP UX 11.3 and it is working fine but not able to make entry required to set permission similar to ROOT without using password (PASSWD) change option for define user in /etc/sudoers file
Please help if some know the syntex? :confused::wall: (2 Replies)
Discussion started by: deviltech
2 Replies
7. Shell Programming and Scripting
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies
8. UNIX for Dummies Questions & Answers
Hi Experts,
I have a script as below :
# cat a.sh
var=`mysql -usupport -p'testing' -e "select count(1) from db_test.sampletable;"`
echo $var
the output of this script is :
count(1) 145039
Now i want to remove header from my o/p and modify somewhat like
145039
I have... (9 Replies)
Discussion started by: mukulverma2408
9 Replies
LEARN ABOUT DEBIAN
network-admin
network-admin(1) General Commands Manual network-admin(1)
NAME
network-admin - Network Administration Tool
SYNOPSIS
network-admin [OPTION...]
DESCRIPTION
network-admin is part of the GNOME system tools, a set of tools to easily access and manage system configuration.
network-admin allows you to specify the way your system connects to other computers and to the Internet.
OPTIONS
--display=DISPLAY
X display to use
network-admin also accepts the standard GNOME and GTK options.
AUTHORS
network-admin was written by Carlos Garnacho Parro <garnacho@tuxerver.net> and others.
This manual page was written by Sven Arvidsson <sa@whiz.se>, for the Debian project (but may be used by others).
SEE ALSO
services-admin(1), shares-admin(1), time-admin(1), users-admin(1), gtk-options(7), gnome-options(7)
The online documentation available through the program's Help menu.
GNOME
2007-05-08 network-admin(1)