Sponsored Content
Top Forums Shell Programming and Scripting track one file and copy to another server Post 302427259 by makkar4u on Friday 4th of June 2010 10:58:57 AM
Old 06-04-2010
track one file and copy to another server

Hello Friends,

I am new to scripting, please guide me in below problem:

I want to track a file, if anyone make any changes to that file then script should copy it to another server.

my whole purpose is to backup a critical file automatically when any change is done to that specific file.

Thanks.
 

10 More Discussions You Might Find Interesting

1. Programming

Command for copy a file from one server to another server

hi, which Command is used for copy a file from one server to another server, please provide the syntax and give one small example... Thanks in advance sarwan (2 Replies)
Discussion started by: sarwan
2 Replies

2. Shell Programming and Scripting

copy file from server to client script

i want to run automated backup copy , using crontab and how to do that? the backup file should be taken from the sun server and put it in the client machine daily.pls help.. (5 Replies)
Discussion started by: gini
5 Replies

3. UNIX for Dummies Questions & Answers

Possible to track FTP user last login? Last and Finger don't track them.

Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in. Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies

4. Shell Programming and Scripting

Copy a file on remote server

I have ssh keys setup and running properly between two servers. I have a Korn shell script that is logging into the remote server and needs to backup the authorized_keys and/or authorized_keys2 files. The following syntax works perfectly ------------------------------------- ssh... (1 Reply)
Discussion started by: sunsysadm2003
1 Replies

5. 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

6. Shell Programming and Scripting

Copy file from one server to multiple server

can some one help me to write a shell script that copy one file from one server to multiple server ex:suppose i wnt to copy file abc.txt which is in server 1 to server2,server3,server4....:confused: (6 Replies)
Discussion started by: alokjyotibal
6 Replies

7. UNIX for Dummies Questions & Answers

Copy a windows CVS file to the unix server as a svs file

I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies

8. UNIX for Dummies Questions & Answers

Copy the newest file from a different server to your home server.

Hi all, So I am on server 1, and I want to grab the newest file from a particular directory on server 2, and place this in a directory on server 1. I am trying to use: ls -tr | tail -1 This works, and gets me the newest file in a particular directory. Using svn `ls -tr | tail -1` etc I... (1 Reply)
Discussion started by: Lexx87
1 Replies

9. UNIX for Advanced & Expert Users

Copy file to server that support only SSH2

Dear community, I have to copy a file from Red Hat to another server that supports only SSH2. SFTP command from Red Hat works fine, but since I have to insert SFTP command into a script, is it possibile to PUT file using SFTP in "one" line code? Or, anyway, without using external file? ... (6 Replies)
Discussion started by: Lord Spectre
6 Replies

10. Shell Programming and Scripting

Shell script to copy a file from one server to anther server and execute the binary

Hi , Is there any script to copy a files (weblogic bianary + silent.xml ) from one server (linux) to another servers and then execute the copy file. We want to copy a file on multiple servers and run the installation. Thanks (1 Reply)
Discussion started by: Nawrajesh
1 Replies
AFINITBYTEORDER(3)														AFINITBYTEORDER(3)

NAME
afInitCompression - initialize compression for a track in an audio file setup SYNOPSIS
#include <audiofile.h> void afInitCompression(AFfilesetup setup, int track, int compression); PARAMETERS
setup is a valid file setup returned by afNewFileSetup(3). track specifies a track within the audio file setup. track is always AF_DEFAULT_TRACK for all currently supported file formats. compression is an identifier specifying the compression type (such as AF_COMPRESSION_G711_ULAW) to be used for audio data in the track. DESCRIPTION
Given an AFfilesetup structure created with afNewFileSetup(3) and a track identified by track (AF_DEFAULT_TRACK for all currently supported file formats), afInitCompression initializes the track to the specified compression. The following compression types are currently supported: AF_COMPRESSION_NONE no compression AF_COMPRESSION_G711_ULAW CCITT G.711 mu-law encoding AF_COMPRESSION_G711_ALAW CCITT G.711 A-law encoding AF_COMPRESSION_IMA IMA ADPCM encoding AF_COMPRESSION_MS_ADPCM MS ADPCM encoding AF_COMPRESSION_FLAC FLAC AF_COMPRESSION_ALAC Apple Lossless Audio Codec ERRORS
afInitCompression can produce the following errors: AF_BAD_FILESETUP setup represents an invalid file setup. AF_BAD_TRACKID track represents an invalid track identifier. AF_BAD_COMPTYPE compression represents an invalid compression type. SEE ALSO
afNewFileSetup(3), afInitSampleFormat(3) AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 AFINITBYTEORDER(3)
All times are GMT -4. The time now is 04:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy