Hi All,
I needed help with 'fdx' command of Linux. I have to transfer some
files to a https server using fdx command and I'm writing the shell
script as a normal FTP shell script but its not working.
#!/bin/sh
HOST='<url> 443'
USER='<my username>'
PASSWD='<my pwd>'
FILE='<file path>'
fdx $HOST > /tmp/fdx.worked 2> /tmp/fdx.failed <<END_SCRIPT
USER $USER $PASSWD
cd inbox
put $FILE
quit
END_SCRIPT
exit 0
And the error I'm getting is:
Trying <IP>:443 ... Connected to <URL>
[SSLv3 Cipher AES256-SHA]
/: cannot authenticate with server <URL>
HTTP/1.1 401 Authorization Required
No control connection for command: Bad file descriptor
Lost connection to remote server
Invalid command.
Not connected.
Not connected.
Also I wanted to know the location of .fdxrc file inside Linux box.
Your feedbacks on this would be highly appreciated.
Thanks
|
|
0
|
|
|
|
Reply
|
aditya.chaudhary (3)
|
7/7/2006 3:00:36 PM |
|
On 2006-07-07, aditya.chaudhary@gmail.com <aditya.chaudhary@gmail.com> wrote:
> Hi All,
>
> I needed help with 'fdx' command of Linux. I have to transfer some
> files to a https server using fdx command and I'm writing the shell
> script as a normal FTP shell script but its not working.
What is the fdx command? It's not on FC4:
type fdx
bash: type: fdx: not found
>
> #!/bin/sh
> HOST='<url> 443'
> USER='<my username>'
> PASSWD='<my pwd>'
> FILE='<file path>'
>
> fdx $HOST > /tmp/fdx.worked 2> /tmp/fdx.failed <<END_SCRIPT
> USER $USER $PASSWD
> cd inbox
> put $FILE
> quit
> END_SCRIPT
> exit 0
>
> And the error I'm getting is:
> Trying <IP>:443 ... Connected to <URL>
> [SSLv3 Cipher AES256-SHA]
> /: cannot authenticate with server <URL>
> HTTP/1.1 401 Authorization Required
> No control connection for command: Bad file descriptor
> Lost connection to remote server
> Invalid command.
> Not connected.
> Not connected.
>
> Also I wanted to know the location of .fdxrc file inside Linux box.
> Your feedbacks on this would be highly appreciated.
>
> Thanks
>
--
|
|
0
|
|
|
|
Reply
|
Jim
|
7/11/2006 7:28:01 PM
|
|