Sponsored Content
Full Discussion: Copy Files with script
Top Forums Shell Programming and Scripting Copy Files with script Post 302580074 by felipe.vinturin on Wednesday 7th of December 2011 11:11:06 AM
Old 12-07-2011
My opinion may not be important to you: I think your script works, but it makes no sense (as I commented above) and I can't understant why you can't say it to your "client"!

As verdepollo commented, test it and you will know if it works or not, as expected!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

copy files without password in script

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

Trying to copy a TON of files with a script

Ok, here's the problem. I need to copy about 200 GB from an old FreeBSD (5.2.1) server to a new Debian server. The old server's fastest port is the ethernet port. I set up an NFS server on the new machine so I can just copy the files over using regular commands/scripts etc. Thing is, I probably... (4 Replies)
Discussion started by: davidstvz
4 Replies

3. Shell Programming and Scripting

Need a script to copy files and check

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

shell script to search and copy files

Hello Im new to this forums, I would like some help regarding a script that I need in order to copy some files. Heres the scenario: I need to search several files which have a particular code inside, lets say "test" all of them on different directories. I need to copy all of them on a new... (4 Replies)
Discussion started by: c.watson
4 Replies

5. Shell Programming and Scripting

bash script to copy files

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. UNIX for Dummies Questions & Answers

Script to copy files from a certain date

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

7. UNIX for Dummies Questions & Answers

Script to search and copy files

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

8. Shell Programming and Scripting

Need Script to copy the contents of two files into one file

Hi i need Script to copy the contents of two files into one file i have 2 fil X1.txt / X2.txt i need script to copy the contents of X1 and X2 In AllXfile X1.txt File X1 X2.txt File X2 AllXfile.txt File X1 File X2 (2 Replies)
Discussion started by: azzeddine2005
2 Replies

9. Shell Programming and Scripting

Error on script to copy files

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. UNIX for Dummies Questions & Answers

UNIX ksh Copy Files Script

I need a UNIX ksh script that counts the number of files in directory, if the files exceed 20 files, then email results. I want the script to run every hour.. I don't have access to cron.. I'm some what new to UNIX. Windows guy all my career.. this is what I have so far.. #!/bin/ksh # count.sh ... (5 Replies)
Discussion started by: PerlHaven2k
5 Replies
rmtab(5nfs)															       rmtab(5nfs)

Name
       rmtab - table of local file systems mounted by remote NFS clients

Description
       The  file  resides  in  the directory and contains a list of all remote hosts that have mounted local file systems using the NFS protocols.
       Whenever a client performs a remote mount, the server machine's mount daemon makes an entry in the  server  machine's  file.   The  command
       instructs the server's mount daemon to remove the entry.  The -b command broadcasts to all servers and informs them that they should remove
       all entries from created by the sender of the broadcast message.  By placing a -b command in tables on NFS servers can be purged of entries
       made  by a crashed client, who, upon rebooting, did not remount the same file systems that it had before the system crashed.  The file is a
       series of lines of the form:
       hostname:directory

       Rather than rewrite the rmtab file on each request, the mount daemon comments out unmounted entries by placing a number	sign  (#)  in  the
       first  character  position of the appropriate line.  The mount daemon rewrites the entire file, without commented out entries, no more fre-
       quently than every 30 minutes.  The frequency depends on the occurrence of requests.

       This table is used only to preserve information between crashes and is read only by when it starts up.  The daemon keeps an in-core  table,
       which it uses to handle requests from programs like and

Restrictions
       Although the table is close to the truth, it may contain erroneous information if NFS client machines fail to execute -a when they reboot.

Files
See Also
       mount(8nfs), umount(8nfs), mountd(8nfs), showmount(8nfs), shutdown(8)

																       rmtab(5nfs)
All times are GMT -4. The time now is 03:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy