The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
how to get multiple files using sftp from a windows server ramky79 SUN Solaris 3 12-10-2008 08:47 PM
Passwordless sftp from UNIX to windows site konark Shell Programming and Scripting 2 03-24-2008 02:36 PM
SFTP from windows E:/ to unix server pranavagarwal Shell Programming and Scripting 12 11-28-2007 10:58 AM
Mount a windows drive on unix ejbrever UNIX for Dummies Questions & Answers 4 10-11-2006 05:35 AM
SFTP from UNIX (AIX) to Windows 2000 server reddymails Shell Programming and Scripting 0 03-09-2006 09:15 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-23-2007
pranavagarwal pranavagarwal is offline
Registered User
  
 

Join Date: Oct 2007
Location: India
Posts: 29
Exclamation SFTP files from windows drive E: to unix

Hello friends,

I was doing this test script which would take a file from my own E: drive to the unix server which i access from a putty.

I tried

Code:
sftp <osuser>@<ipaddress>
but it didn't work.

does the windows client have to be a server installation?

i was trying on win xp from solaris 5.10 tty

Another thing,

I need to understand the syntax of a crontab command.
e.g.,
Code:
10 2-10 * * * ksh /home/check2run.ksh /home/test.done "home/test_sftp.ksh sftp" 2>> logs/sftptest.log >& 2
I understand the basic syntax of crontab.
plz tell me, what do the
Code:
/home/test.done
,
Code:
"home/test_sftp.ksh sftp" 2>> logs/sftptest.log
and
Code:
>& 2
parts mean?

will be sincerely grateful for any kind of help that I recieve.
  #2 (permalink)  
Old 11-23-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
For windows use psftp client instead.
The crontab syntax (this is ksh, which I'm not really good at, correct me if I'm wrong) generally indicates scripts invocation and sending the output in log file.
  #3 (permalink)  
Old 11-24-2007
Checkoh Checkoh is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 1
cron line explanation

You should better try WinSCP, it's a lot easier to use.

Code:
10 2-10 * * * ksh /home/check2run.ksh /home/test.done "home/test_sftp.ksh sftp" 2>> logs/sftptest.log >& 2
Your doubts are not cron syntax related, the entire line means:

execute at minute 10 between 2 and 10am everyday the following command:

Code:
ksh /home/check2run.ksh /home/test.done "home/test_sftp.ksh sftp" 2>> logs/sftptest.log >& 2
/home/check2run.ksh is executed with the ksh shell and the following arguments
Code:
/home/test.done "home/test_sftp.ksh sftp"
Redirect standard error output to /logs/sftptest.log
Code:
 2>> logs/sftptest.log
Redirect standard output to the standard error.
Code:
 >& 2
  #4 (permalink)  
Old 11-26-2007
pranavagarwal pranavagarwal is offline
Registered User
  
 

Join Date: Oct 2007
Location: India
Posts: 29
Thumbs up

@Checkoh

Thank you very much my friend.. the explanation is wonderfully clear.

@Sysgate..

Thanks tou you too my frind.. although I'm still doubtful that psftp can solve my problem.
  #5 (permalink)  
Old 11-26-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
Why not ? psftp is excellent command line utility for batch ssh transfers, it also can run in non-interactive mode. What exactly is your requirement ?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0