Problem in copying files!!


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Problem in copying files!!
# 1  
Old 11-16-2005
PHP Problem in copying files!!

I have requirement of one directory in /tmp area on Sun server. The area contains following files :
brdcems# /tmp/.tivoli >>ls -lt
total 0
srwxrwxrwx 1 root other 0 Nov 16 13:41 a9c30c14-80bf256e-94
srwxrwxrwx 1 root other 0 Nov 12 12:28 a9c30cc8-80bf256e-94

I am moving this application to another server, but application requirement is to have these files in the /tmp/.tivoli folder of the another area. I am unable to copy / create these files. Is there any way to create these files or copy these files to another area.

Regards,

SSK.
# 2  
Old 11-17-2005
The /tmp directory in all the Sun servers I've played with are temporary directories so all the files and directories in it are removed/deleted after a reboot. You should be able to start your application on the new server without copying the /tmp/.tivoli files over from the old server as that directory and any files under it are recreated by the application when it starts.

However, if you really want to copy over the files ....
Code:
cd /tmp; tar cvfp - .tivoli | ssh serverb "cd /tmp; tar xvfp -"

# 3  
Old 11-17-2005
Look at the leading s in the output of "ls -l". Those are not files. They are sockets. And, no, you cannot copy them.
# 4  
Old 11-17-2005
Quote:
Originally Posted by Perderabo
Look at the leading s in the output of "ls -l". Those are not files. They are sockets. And, no, you cannot copy them.
I guess I really have to turn the brain on too. Thanks for the clarification, Sir!
# 5  
Old 11-17-2005
Arent these files created when you start the application? Why would you need to copy them over?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem copying files from windows to unix

Hello, I want some directions for a command inside a shell script which would copy files from some path on my windows os (say my documents) to the path where my shell script is saved and I want it to exit the sftp session and continue executing the remaining lines in my shell script after... (2 Replies)
Discussion started by: Vishwa308
2 Replies

2. Shell Programming and Scripting

Files copying - [ Listed files alone. ] - Shell script

Hi All, I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files. To Do From Directory : /myproject/MainDir To Directory : /myproject/data List of files need to copy is in the file: /myproject/filesList.txt ... (4 Replies)
Discussion started by: linuxadmin
4 Replies

3. Shell Programming and Scripting

Problem with copying a date value to another variable

Im having problem with copying/assigning the date which is stored in a vairable to another vairable.Below is the code DT=`ls -ltr | tail -1 | awk '{print $5 $6}'` | date %Y%m%d # getting the date part from ls -ltr echo ${DT} # prints the date DT_2=DT # copying to another variable echo ${DT_2... (9 Replies)
Discussion started by: michaelrozar17
9 Replies

4. UNIX for Advanced & Expert Users

copying of files by userB, dir & files owned by userA

I am userB and have a dir /temp1 This dir is owned by me. How do I recursively copy files from another users's dir userA? I need to preserve the original user who created files, original group information, original create date, mod date etc. I tried cp -pr /home/userA/* . ... (2 Replies)
Discussion started by: Hangman2
2 Replies

5. UNIX for Dummies Questions & Answers

Copying large file problem on SVR4 Unix

We have 3 Unix servers all running SVR4 Unix 1.4. I have no problems copying files to and from 2 of the servers using either the rcp command or ftp but when i come to transfer large files to the third server the copy gives up part way through and crashes this server. Copying smaller files using RCP... (7 Replies)
Discussion started by: coatesd
7 Replies

6. HP-UX

Problem running out of space by copying files to identical filesystems

I am trying to copy a filesystem from one server to another using rsync over the WAN. As far as I can tell, the two filesystems are identical but for some reason I cannot copy the last file because I keep running out of space. SERVER 1: mkfs -m <lvol> mkfs -F vxfs -o... (1 Reply)
Discussion started by: keelba
1 Replies

7. Shell Programming and Scripting

copying files

hi I want to copy all files from the current directory and move to .archive file. Moreover,I want to add .bak to each file name, that will be copied. How can I do that? (4 Replies)
Discussion started by: tjay83
4 Replies

8. Shell Programming and Scripting

Stuck on a matching, copying type problem

Hi all, I am new to these forum and to scripting in general for that matter. i have been looking through the forums for something that could explain my problem. I have be come pretty familiar with sed and awk but I can not seem to figure this out... I am trying to match data from 3 files but every... (4 Replies)
Discussion started by: derek3131
4 Replies

9. SCO

Sco 6 copying problem

We are using GTAR for daily copies of our database using Travan cartridges (Tapestor drive)and are having intermittent problems. Some days it does not copy and we can't figure out why. Sometimes it seems to be hanging and a tape status command doesn't return anything. Other times it doesn't copy... (0 Replies)
Discussion started by: Yrr88
0 Replies

10. HP-UX

SCCS problem when copying files

I have created a SCCS directory with version 1.1. It has say A.txt (for simplicity) Now updated files are present in other directory. If I copy A.txt it wont be effected in SCCS. How do I make this A.text to be version 1.2?? Please help! (3 Replies)
Discussion started by: superprogrammer
3 Replies
Login or Register to Ask a Question