The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-03-2006
Registered User
 

Join Date: May 2005
Posts: 4
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
Reply With Quote
Forum Sponsor
  #2  
Old 04-03-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,269
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
Reply With Quote
  #3  
Old 04-03-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,269
Code:
/usr/local/bin/scp -p -a $REPOSITORY/HR.glpccd*.unl Administrator@10.84.124.6: c:\temp
maybe
Reply With Quote
  #4  
Old 04-05-2006
Registered User
 

Join Date: May 2005
Posts: 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??
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0