Hi ,
Can someone suggest how to connect to windows server from DataStage Unix Server and transfer files.
Note: i don't want to use the ftp' stage
Windows server team placed the DataStage Unix Server PUB Key but when i ran the below script it is still asking the password, it not doing the auto logic
#!/usr/bin/ksh
cd /local/apps/OutputFiles/PSC/
ftp -nvi us1003000.corpnet1.com <<EOF
user RR_CDC_US
cd /Home/RD_USER/Inbound
ascii
mput *.txt
echo "Files Transfered Successfully"
bye
EOF
unable to connect to windows server from DataStage Unix Ser
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 194
- Joined: Thu May 11, 2006 9:42 am
unable to connect to windows server from DataStage Unix Ser
Thanks,
Chris Jones
Chris Jones
-
- Participant
- Posts: 194
- Joined: Thu May 11, 2006 9:42 am
unable to connect to windows server from DataStage Unix Ser
i tried sftp option also with below code but still prompting for password..
#!/usr/bin/ksh
cd /local/apps/OutputFiles/PSC/
sftp RR_CDC_US @us1003000.corpnet1.com <<EOF
ascii
mput *.txt
bye
EOF
#!/usr/bin/ksh
cd /local/apps/OutputFiles/PSC/
sftp RR_CDC_US @us1003000.corpnet1.com <<EOF
ascii
mput *.txt
bye
EOF
Thanks,
Chris Jones
Chris Jones
Re: unable to connect to windows server from DataStage Unix
Hi
you can try this code :
you can try this code :
Code: Select all
#!/usr/bin/ksh
cd /local/apps/OutputFiles/PSC/
ftp -nvi us1003000.corpnet1.com <<EOF
user USERNAME PASSWORD
cd /Home/RD_USER/Inbound
ascii
mput *.txt
echo "Files Transfered Successfully"
bye
EOF