Sponsored Content
Full Discussion: to copy and repeat
Top Forums Shell Programming and Scripting to copy and repeat Post 302135189 by falcondown01 on Thursday 6th of September 2007 09:27:08 PM
Old 09-06-2007
to copy and repeat

Hi All,
I have done some looking at other threads but haven't found quite what I am looking for. I am a newbie to scripting and haven't got to where I want to you but here is my basic question. I have a script to copy a file and send it to another file with a date and time stamp. What I want to do is to be able to repeat this command within the script to happen every 30 (or 45 or 60) minutes. I have looked at doing a cron job but want more maual intervention to start and stop the script. So I am looking to just have the commands in the script repeat itself after a sleep. Here is the script I have so far:

#! /bin/sh
for i in `ls sband_log_error`
do
mv $i labfiles/int/sband/$i$(date +%F-%T)
done

Thanks,
falcondown01
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

any idea to repeat a action in VI

Any idea to repeat an action to all the lines in vi... suppose i want to delete the first word from all the lines in VI .. how would i do it ? in general i am also looking for a way to apply a action to all the lines in VI . (6 Replies)
Discussion started by: myelvis
6 Replies

2. UNIX for Advanced & Expert Users

Keyboard repeat speed

I would like to increase the speed that characters repeat when a key is held. My older machines had a BIOS setting to control speed. I am using SCO Openserver. (1 Reply)
Discussion started by: tecss
1 Replies

3. UNIX for Dummies Questions & Answers

Repeat Commands

On my system I use Escape "k" to go back in commands. I read on tutorials that it is ctrl p, but that does not work on my system. Anyone know what the command to go foward is? (6 Replies)
Discussion started by: dereckbc
6 Replies

4. Shell Programming and Scripting

repeat pattern without using excel

I have a file that I need to reiterate all the lines. This is a text file with pipe delimeters, four fields and 133 lines. file1.txt ----- 0 | 0 | 1 | random TEXT1 | 0 | 0 | 2 | random TEXT2 | 0 | 0 | 3 | random TEXT3 | ... 0 | 0 | 133 | random TEXT133 | ----- Now, I need all 133... (3 Replies)
Discussion started by: ajp7701
3 Replies

5. UNIX for Dummies Questions & Answers

repeat each record n times

I have: aa01 aa02 aa03 aa04 ab01 ab02 ab03 ab04 I would like each record printed 5 times: aa01 aa01 aa01 aa01 aa01 aa02 aa02 (6 Replies)
Discussion started by: kenneth.mcbride
6 Replies

6. UNIX for Dummies Questions & Answers

Efficiently Repeat Text

Hi, Often when I use echo statements in scripts I echo a line of #'s above and below. For example: echo ##### echo hello world echo ##### However, I generally have a series of about 75 #'s. For example: echo #(x 75) echo hello world echo #(X 75) While this helps to delineate... (7 Replies)
Discussion started by: msb65
7 Replies

7. Shell Programming and Scripting

Repeat using for loop

I have a file like this 2011-10-10 10:46:00,1-1-13-1-1,151510,ALCLA0A84D2C 2011-10-10 10:46:00,1-1-13-1-1,151520,65537 2011-10-10 10:46:00,1-1-13-1-1,151515,46932 2011-10-10 10:46:00,1-1-13-1-1,151521,32769 2011-10-10 10:46:00,1-1-13-1-1,151522,32769 2011-10-10... (4 Replies)
Discussion started by: LavanyaP
4 Replies

8. Shell Programming and Scripting

Ping and repeat ?

How do i write a loop ping to see if it get timeout or hang ? it should loop every 30 second to ping a server ? ping -c 5 -t 15 www.google.com if ]; then date '+%Y-%m-%d %H:%M:%S Connection Unavailable' >> /home/sabercats/checkconnection.log else date '+%Y-%m-%d %H:%M:%S Connection... (3 Replies)
Discussion started by: sabercats
3 Replies

9. Shell Programming and Scripting

Repeat for different variable

Hey, I've created following script: var1=test1 setA=testA if ... touch $setA/$var1 ... fi I would like now the repeat the command touch (in this example) for different variables. So below, the varX should run 3 times (var1, var2, var4). Var3 is skipped in this example... (4 Replies)
Discussion started by: brononius
4 Replies

10. UNIX for Dummies Questions & Answers

How to Repeat history command?

Assume i have typed 4 commands in the past like vi `ls -t |head -n 1` tail -2 test.txt ls -lrt | grep "/etc/profile.d" pwd Now if i type r p it should execute the command "pwd" likewise r t should execute tail -2 test.txt. Note: esc k and using up arrow and down arrow will get this work... (3 Replies)
Discussion started by: Ramanareddygv
3 Replies
sane-sp15c(5)						   SANE Scanner Access Now Easy 					     sane-sp15c(5)

NAME
sane-sp15c - SANE backend for Fujitsu ScanPartner 15C flatbed scanner DESCRIPTION
The sane-sp15c library implements a SANE (Scanner Access Now Easy) backend which provides access to the Fujitsu flatbed scanners. At present, the following scanner is known to work with these backend: Vendor: Model: Rev: -------- ---------------- ----- FCPA ScanPartner 15C 1.01 The ScanPartner 15C driver supports lineart (1-bit), halftone (1-bit), grayscale (4-bit and 8-bit), and color (3 x 8-bit) scanning. Other scanners in these families may work. The ScanPartner 15C seems to be a repackaging of the ScanPartner 600C. People are encouraged to try these driver with the other scanners and to contact the author with test results. CONFIGURATION
A modest effort has been made to expose the standard options to the API. This allows frontends such as xscanimage to set scanning region, resolution, bit-depth (and color), and enable the automatic document feeder. SEE ALSO
sane(7), sane-scsi(5), sane-fujitsu(5) Fujitsu ScanPartner 15C OEM Manual, Doc. No. 250-0081-0 Fujitsu M3096G OEM Manual, part number 50FH5028E-05 Fujitsu M3096GX/M3093GX/M3093DG OEM Manual, part number C150-E015...03 AUTHOR
Randolph Bentson <bentson@holmsjoen.com>, with credit to the unnamed author of the coolscan driver LIMITATIONS
Testing limited to a Linux 2.2.5 kernel Can't quite get the scan page/minute performance in ADF modes. This may be due to limited system buffer size. BUGS
I'm sure there are plenty, and not too well hidden, but I haven't seen them yet. Both scanners claim to have separate control of resolution in X and Y directions. I confess I haven't tested this yet. I have found that xsane doesn't even display this capability. Threshold settings on the SP15C don't seem to affect the results of lineart mode scans. It might be possible to merge these two drivers without much effort since the SP15C driver was derived from the M3096G driver. They were split so as to keep the second driver development from breaking the working first driver. Watch this space for changes. 14 Jul 2008 sane-sp15c(5)
All times are GMT -4. The time now is 04:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy