Sponsored Content
Top Forums Shell Programming and Scripting crontab; copy most recent *.mpg file from local machine to smb storage device Post 302319222 by methyl on Sunday 24th of May 2009 04:58:34 PM
Old 05-24-2009
Please state what Operating System you have and which is your preferred shell.
Are the files created in a predicatable manner such that the required cron can run on files which are definitely complete?
It is quite easy if there is a quiet slot when no files can be created.

My first thought is to create a script which copies the files during a quiet time slot, then immediately create a reference file with "touch". After the first instance, use "find -newer" relative to the reference file and re-touch the reference file after the copy. This technique will not work unless there is a regular quiet time slot.

Last edited by methyl; 05-24-2009 at 06:07 PM.. Reason: afterthought
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

copy files from local drive to telnet unix machine.

i want to run some solaris executable program (text file). i telnet to solaris machine. the text file is on the net drive h: or my local drive on windows system. how can i copy the text file from local drive in windows to remote machine in solaris system? thanks. (4 Replies)
Discussion started by: gary
4 Replies

2. UNIX for Dummies Questions & Answers

Copy file from local machine to server?

I am logged into a server via SSH. There is a file on my desktop of my Windows PC I would like to put on that server. How do I do it? SCP looks the likely method but how does the server know where the file is on the local machine? Thanks. (2 Replies)
Discussion started by: Sepia
2 Replies

3. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

4. Shell Programming and Scripting

How to transfer files from unix machine to local machine using shell script?

Hi All.. Am new to Unix!! Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp). And also i have to transfer the input file from the local directory to Unix machine (Server) Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies

5. Shell Programming and Scripting

File representing the hard disk storage device

I want example of a file representing the hard disk storage device In UNIX ? (6 Replies)
Discussion started by: tamer11007
6 Replies

6. UNIX for Advanced & Expert Users

FTP While transfering files to local machine to remote machine

Hi Am using unix Ksh Am getting the problem while transferring zero size files through the script . When i transfer zero size files from local machine to remote machine manually i can able to do it . My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies

7. UNIX for Dummies Questions & Answers

Copy files from Linux server local windows machine using a shell script

Hello, I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine. Is this possible.? Currently it is being done manually using winscp (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies

8. Red Hat

iptables applied in local machine, can't ssh remote machine after chain changed to DROP

I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99 Source Destination was UP, with IP 192.168.1.15. This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies

9. Shell Programming and Scripting

Help with fetching the data from remote machine from my jumpbox(local machine)

Team, Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
Discussion started by: whizkidash
20 Replies

10. UNIX for Dummies Questions & Answers

Find most recent file and copy to another directory.

Very new to shell scripting. Not sure if my title is correct but I will try and explain. Directory has 100+ files with this format, " ABCD_ABC_Abc_AB0126.abc ". When a new file gets created, the 16-19 characters in the file name gets incremented by 1. Ex...todays most recent file is... (14 Replies)
Discussion started by: askvip
14 Replies
wbsd(7D)							      Devices								  wbsd(7D)

NAME
wbsd - Winbond W83L519D Secure Digital slot driver SYNOPSIS
pciclass,080500@unit-address pciclass,080501@unit-address DESCRIPTION
The wbsd driver supports Secure Digital (SD) media slots found on Tadpole SPARCLE, Tadpole Viper and Sun Ultra 3 mobile SPARC workstations. FILES
Memory card device files are created by the sdcard(7D) driver. An attachment point device file is created for each physical slot on the system: /dev/sdcardx/y Attachment point for slot y on controller x. Typically this is named /dev/sdcard0/0. /kernel/misc/sparcv9/sdhost 64-bit ELF kernel module (SPARC). ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |SPARC | +-----------------------------+-----------------------------+ |Availability |SUNWwbsd | +-----------------------------+-----------------------------+ SEE ALSO
cfgadm_sdcard(1M), attributes(5), sda(7D), sdcard(7D) System Administration Guide, Volume I System Administration Guide: Basic Administration SunOS 5.11 28 Feb 2008 wbsd(7D)
All times are GMT -4. The time now is 05:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy