![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 05:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 03:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | Linux | 5 | 07-30-2007 05:26 AM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | HP-UX | 1 | 10-16-2006 01:16 PM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | Shell Programming and Scripting | 0 | 09-19-2006 06:44 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
help on SCP command
Total unix newbie needs help:Need to SCP files to a WINDOWS NT server,but giving me some problems:
REPOSITORY=/usr/psoft/fs600srv/reports/HR /usr/local/bin/scp -p -a $REPOSITORY/HR.glpccd*.unl Administrator@10.84.124.6:/Temp When I execute the script, it is giving me this error. scp: warning: destination (/Temp) is not a directory. Something wrong with my command?Please help |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Windows directories paths use backslashes like \Temp not /Temp
If it's an ntfs filesystem it will be case sensitive, FAT32 not. As I remember |
|
#3
|
|||
|
|||
|
Code:
/usr/local/bin/scp -p -a $REPOSITORY/HR.glpccd*.unl Administrator@10.84.124.6: c:\temp |
|
#4
|
|||
|
|||
|
thanks.
this is my command now: /usr/local/bin/scp -p -a $SRC_DIR/glpccd_dbs_test.unl Administrator@10.84.124.6:\pop_gl\Fi...d_dbs_test.unl The \pop_gl\Filesend\files is a folder in C: drive of the NT server. The problem is, the file is sent to C:\Documents and Settings\Administrator folder, and the file becomes named "pop_glFilesendfilesglpccd_dbs_test.unl. Is there a way to have the command go into the correct directory and place it as the correct filename?? |
|||
| Google The UNIX and Linux Forums |