01-28-2007
backing up file everytime script run and saving other backups
how would i go about creatng a backup of a file everytime a script is run so that the next time it is run the old backup gets pushed back and the most recent backup is 1st.
(new)backup.1
(old)backup.2
that kind of idea??
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
does anyone have any idea of what this means and if you do, please elaborate more on what you know about this and the importance it carries along.
by the way, we dealing with Linux and Solaris 8 systems here (3 Replies)
Discussion started by: TRUEST
3 Replies
2. Shell Programming and Scripting
hi all,
I've included some variables in my .bashrc file. But everytime i'm logging in i need to source my .bashrc file to make effect of my variables.
i'm having an account on a highly secured production environment.
I've the following in my ~/.bashrc file
alias cls=clear
How to make... (2 Replies)
Discussion started by: kalyanraj
2 Replies
3. UNIX for Advanced & Expert Users
Hi,
Iam trying to create a back up file for a log file which is being continously updated.
Is there a way to backup without loosing the log, while the back up is also up to date?
If i try to replace the log with an empty file, I loose the log for some seconds.
If I try to create a... (2 Replies)
Discussion started by: baanprog
2 Replies
4. Shell Programming and Scripting
Hi folks
I have a unix script script1 in a directory folder1 and also I have few input log files in this directory. My input log files will be copied into this directory folder1 from the portable thumb drive.
Now what I want is I need to run this script1 whenever any new file is copied... (2 Replies)
Discussion started by: ks_reddy
2 Replies
5. UNIX for Dummies Questions & Answers
I created a script called title
#!/bin/sh
echo "^0;$*^G"
It will change the terminal window titlebar to what ever I type after the script (title BIG would change titlebar to BIG instead of terminal) Is there a way to make it run so it will work on every terminal window that gets opened.... (1 Reply)
Discussion started by: amason0508
1 Replies
6. Shell Programming and Scripting
the problem statement is
Write a shell script, which gets executed the moment the user opens a terminal. It should display the message "Hello your_name, welcome to 172.16.4.120 server”
How to get around this? (2 Replies)
Discussion started by: arindamlive
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have this script,
while
do
ps ax|grep 5060 > log.txt
echo " "
sleep 1
done
}
I want to actually put a new line everytime the loop is executed in log.txt , but I do not know how to "embed" the echo " " inside the log.txt.
(so to say... (1 Reply)
Discussion started by: peuceul
1 Replies
8. Shell Programming and Scripting
I had a script that uses a fair number of variables. My manager just let me know that these variables have to be set in one .sh file. How do I do that? I'm use bash shell.
Also At the end of my script I need to save the last successful run. so that when I run it next time, I just this parm to... (3 Replies)
Discussion started by: MJCreations
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I am trying to create an expect script that backups up data from multiple servers with the same username, but with different passwords for each server. For example, I have two servers with the "myuser" account with different passwords for that account for each server.
I went ahead and... (2 Replies)
Discussion started by: richw92201
2 Replies
10. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies