transfering a directory to the toolman


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers transfering a directory to the toolman
# 1  
Old 09-24-2008
transfering a directory to the toolman

I have a question about transferring a directory to the toolman. I have a directory called assn3 that contains two txt files and one empty directory and I want to transfer the assn3 to my my tooman account. Every time I try to transfer the file it says that the assn3 is not a regular file! what does that mean and how I can change it to be a regular file.

another question, how I can use the find comman to display all the files in a directory? without being specific and without using the ls commans
# 2  
Old 09-24-2008
What is the commandline you are using to do the transfer? What's a 'toolman'
find won't do that easily as it will want to list all the files in subdirs too - why can't you use ls?
# 3  
Old 09-24-2008
The command that I used to transfer the file is:

Code:
scp assn3 <myUserName>@toolman.wiu.edu:/home

Then it asked me about the password and after entering the password it is saying that the assn3 is not a regular file?! I do not understand what is going on with that.

I used this to find all the files in my subdirectory since all the files starts with letter a

Code:
find a* <name Of My directory>

# 4  
Old 09-24-2008
Ah, I see now. scp with no commandline switches will expect a plain file and will barf if you give it a directory instead. No worries however, just add the '-r' flag to your commandline to tell scp to copy the directory and everything within it (it will create '/home/assn3' directory on toolman.wiu.edu - do you have sufficient permissions to do that? If not, try leaving off the '/home' part of the commandline altogether to create the assn3 dir in your home directory on toolman).

If you just want to recursivly list all files in the assn3 dir (for example), you can either run 'ls -R assn3'. If you only want to see what's in assn3 but don't need ot know what's in any subdirs of assn3, just run 'ls assn3'.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Transfering files from one to another machine in different directories

I have to write script in which I have to copy files from different directories on machine A and put them in corresponding directories in machine B. Here machine A remains same per project and machine B keeps on changing. Is there any way through which I can do this using single remote... (1 Reply)
Discussion started by: madhurjajoo
1 Replies

2. UNIX for Advanced & Expert Users

transfering kernel image to another system

my server system is low on disk. To install a new kernel I think i shall do the following: 1. compile the kernel on another system. 2. copy bzImage along with config, System.map and of course the laodable module in /lib/modules and transfer them to the server. 3. Now, I can remove the... (0 Replies)
Discussion started by: dr_mabuse
0 Replies

3. Shell Programming and Scripting

ftp script for transfering files

Hi, I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder. All configuration should be done through a properties files.I was planning that All configuration should be done through a properties files. and finally the output should be... (0 Replies)
Discussion started by: rahul125
0 Replies

4. UNIX for Dummies Questions & Answers

Ext3 to NTFS - transfering data

Alright so here is my problem: I have an ext3 external hard drive with about 270gb of data that needs to be copied/transferred to a NTFS drive. The NTFS drive has data currently on it...which obviously needs to stay intact. My supervisor mentioned that this problem could be a little tricky so I... (9 Replies)
Discussion started by: huntreilly25
9 Replies

5. Shell Programming and Scripting

transfering file from unix to window

Hello Sir/Madam, In my system both unix and windows xp are running, I want to transfer a file from unix to window. Sir, I m new in unix scripting ,So Please help me to solve my problem. Thanking you. (2 Replies)
Discussion started by: Nirmal
2 Replies

6. UNIX for Dummies Questions & Answers

transfering files unix to pc

Hi, I'm an intern at a business that just acquired a company that ran off the unix system. They have files on this workstation that they would like to move to a windows XP pro system, but no one (myself included) has enough unix knowledge to know how to do this. It's my understanding that this can... (8 Replies)
Discussion started by: intern
8 Replies

7. Filesystems, Disks and Memory

Transfering size between partitions

Below is a list of the file system on my Sun system. How can I transfer more disk space from the "/space" partition to the "/" partition with out rebuilding? / /dev/dsk/c0t0d0 6191949 5736718 393312 94% /proc /proc 0 0 0 0% /dev/fd fd 0 0 0 0% /etc/mntta ... (10 Replies)
Discussion started by: meyersp
10 Replies

8. UNIX for Dummies Questions & Answers

Transfering files from one server to another.

My oracle database is generating archive logs. I want to copy those archive logs over to backup server on a regular basis. I know how to create an ftp job and I can put it in my crontab. My problem is that I don't know how to send the files just once instead of sends all the files in the... (4 Replies)
Discussion started by: Alan Bird
4 Replies

9. UNIX for Dummies Questions & Answers

Transfering files

Hi all. 1. How can i copy files from one unix system to another. should i use ftp? so How? 2. How can i create an archive whose extention is tar.gz? and how can i decompress them later? 3. WHat is RPM ? what does it stands for? Thanks (5 Replies)
Discussion started by: vbs
5 Replies

10. UNIX for Dummies Questions & Answers

Transfering a window to another screen

Dear Experts I am using a workstatin with two screens and its OS is solaris 8. I wish to trnsfer some application windows from one screen to another one without need to closing the window and open it from other screen. Please advise Bests Reza (3 Replies)
Discussion started by: Reza Nazarian
3 Replies
Login or Register to Ask a Question