11-05-2009
sounds to me like you want to use rsync
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
1. I wrote a ftp code to copy a file from unix box to another unix box. But it has clear text password in the code. Due to security constraints, clear text password in the code is not allowed. Please let me know the ways to write the code without prompting for password.
2. I tried writing scp... (0 Replies)
Discussion started by: jwala
0 Replies
2. Shell Programming and Scripting
Hello,
Here is the situation..............
# pwd
/opt/123
# cat index.txt
abc-monitor/homedir/public_html/index.php
abc-monitor/homedir/public_html/test/index.php
abc-monitor/homedir/public_html/test1/index.php
# cp index.txt index.home
# cat /root/x (1 Reply)
Discussion started by: fed.linuxgossip
1 Replies
3. Shell Programming and Scripting
Hi all,
I need a script in ksh:
1: Copy files from directory (A) to directory (B)
2: Check if files that will be copied in directory (A) have never been yet copied to (B)
3: Never copy the last created file of directory (A)
This script will run on crontab.
Thanks in advance for your... (1 Reply)
Discussion started by: Camaro
1 Replies
4. Shell Programming and Scripting
Hi all, I'm looking for a script to poll a specified directory and copy new files to another location.
The script should only copy new files so, I based on mtime I guess?
Can anyone point me in the right direction of a script which could do this?
My scripting skills aren't too bad, but... (1 Reply)
Discussion started by: JayC89
1 Replies
5. Shell Programming and Scripting
hey everyone, new here
i have arch setup and i am using smbnetfs to mount some windows shares in /mnt/smbnet
what i want to do is copy files from my home dir to a dir in /mnt/smbnet but i also need it to remove files if i have deleted them from my home dir
seems that cp would be the... (8 Replies)
Discussion started by: dodgefan67
8 Replies
6. Shell Programming and Scripting
Hello,
I have written a script to copy files from one partion to another. Not sure if this is correct.
#!/bin/sh
CDR_SOURCE=/storage/archive/logmgmt/result/billing/
CDR_DEST=/storage4/archive/logmgmt/result/billing/
cp $CDR_SOURCE $CDR_DEST;
exit 0
The CDR_SOURCE folder has... (5 Replies)
Discussion started by: Siddheshk
5 Replies
7. UNIX for Dummies Questions & Answers
I need to copy files from a directory that has a lot of files in it. However I only want to copy them from a certain date. My thoughts so far are to use ls -l and to pipe this into awk and print out tokens 6 (month)and 7 (day).
$ ls -l
-rw-r--r-- 1 prodqual tst 681883 Jun 12... (2 Replies)
Discussion started by: millsy5
2 Replies
8. UNIX for Dummies Questions & Answers
HI everyone,
I been to this site before for help and found my answers on other threads now I am posting my own :).
I have a list of file names with out extensions on an txt file. I need a way for the script to search on the server for each file name and copy the files over to a new directory.... (12 Replies)
Discussion started by: sergiol
12 Replies
9. Shell Programming and Scripting
Hi
I have the following script to copy files from one directory to another:
#!/bin/sh
touch -mt 201304240000 /var/tmp/ref1
touch -mt 201305152359 /var/tmp/ref2
find /moneta_collected02/in_psl -type f \( -newer /var/tmp/ref1 -a ! -newer /var/tmp/ref2 \) > file_lst
cp -pr $(< file_lst)... (6 Replies)
Discussion started by: fretagi
6 Replies
10. Shell Programming and Scripting
I am trying to copy files with specific date and name to another folder. I am very new to shell scripting so i am finding it hard to do that. see the sample code i have written below.
srcdir="/media/ubuntu/CA52057F5205720D/Users/st4r8_000/Desktop/office work/26 nov"... (13 Replies)
Discussion started by: Aqeel Abbas
13 Replies
RPLAY(1) General Commands Manual RPLAY(1)
NAME
rplay - play, pause, continue, and stop sounds
SYNOPSIS
rplay [options] [sound ...]
DESCRIPTION
rplay is client that communicates with rplayd to play, pause, continue, and stop sounds using both the RPLAY and RPTP protocols. Sound
files can be played by rplayd directly if available on the local system or sounds can be sent over the network using UDP or TCP/IP. rplay
will attempt to determine whether or not the server has the sound before using the network.
OPTIONS
-b BYTES, --buffer-size=BYTES
Use of a buffer size of BYTES when playing sounds using RPTP flows. The default is 8K.
-c, --continue
Continue sounds.
-n N, --count=N
Number of times to play the sound, default = 1.
-N N, --list-count=N
Number of times to play all the sounds, default = 1.
--list-name=NAME
Name this list NAME. rplayd appends sounds with the same NAME into the same sound list -- it plays them sequentially.
--help Display helpful information.
-h HOST, --host=HOST, --hosts=HOST
Specify the rplay host, default = localhost.
-i INFO, --info=INFO
Audio information for a sound file. This option is intended to be used when sounds are read from standard input. INFO must be of
the form:
`format,sample-rate,bits,channels,byte-order,offset' Examples: ulaw,8000,8,1,big-endian,0
gsm,8000 Shorthand info is provided for Sun's audio devices using the following options: --info-amd, --info-dbri,
--info-cs4231. There's also: --info-ulaw and --info-gsm.
-p, --pause
Pause sounds.
--port=PORT
Use PORT instead of the default RPLAY/UDP or RPTP/TCP port.
-P N, --priority=N
Play sounds at priority N (0 <= N <= 255), default = 0.
-r, --random
Randomly choose one of the given sounds.
--reset
Tell the server to reset itself.
--rplay, --RPLAY
Force the use of the RPLAY protocol. The default protocol to be used is determined by checking whether or not the server has local
access to the specified sounds. RPLAY is used when sounds are accessible, otherwise RPTP and possibly flows are used. RPLAY will
also be used when sound accessibility cannot be determined.
--rptp, --RPTP
Force the use of the RPTP protocol. See `--rplay' for more information about protocols.
-R N, --sample-rate=N
Play sounds at sample rate N, default = 0.
-s, --stop
Stop sounds.
--version
Print the rplay version and exit.
-v N, --volume=N
Play sounds at volume N (0 <= N <= 255), default = 127.
SEE ALSO
rplayd(8), rptp(1)
6/29/98 RPLAY(1)