FTP from SCO UNIX to Windows
Fairlight
fairlite at fairlite.com
Thu Mar 19 07:42:41 PDT 2009
On Thu, Mar 19, 2009 at 07:29:11AM -0700, Mwango Mutale may or may not have
proven themselves an utter git by pronouncing:
> Hello All,
>
> I want to use to FTP a file from SCO UNIX environment to Windows
> environment. Could you help me, to have it work ?
>
> #!/bin/ksh
> echo "OK starting now ..."
> #echo "lcd c:/payruns" >> $TMP_CMDS # where u want the files to get ftped
>
> cd /u/fmutale/phaseI/bin
> #lcd c:\payruns
>
> ftp -n -i localhost << !
> user fmutale xxxxxxx
> lcd C:\payruns
> binary
> put microfin433.unl
> quit
> !
There are a few things wrong with this.
1) Even -if- you had an FTP daemon running on Windows, your command to
"lcd C:\payruns" would be changing the directory of the local SCO box, not
the Windows box.
2) User authentication for ftp clients is normally done via ~/.netrc files,
not piped in from a script.
3) What FTP daemon are you using on Windows? Without one, you're not going
to be able to do this at all. You neglected to mention any sort of vendor
or version.
4) If you don't have an FTP daemon running on Windows, your best bet would
be to get samba from ftp.jpr.com and use smbclient to transfer things to
SMB/CIFS shares.
I won't even get into the apparent entire lack of a filePro tie-in. Maybe
it's related, maybe not. I've just never seen you post to the list before,
and it's odd seeing an OT drive-by like this pop up from you.
mark->
--
"I'm not subtle. I'm not pretty, and I'll piss off a lot of people along
the way. But I'll get the job done" --Captain Matthew Gideon, "Crusade"
More information about the Filepro-list
mailing list