- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp script launches browser
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 11:34 AM
тАО08-28-2002 11:34 AM
ftp script launches browser
m creating a temp txt file which contains the ftp commands.
this is what the batch file contains:
> C:\script.txt echo open ftp.abc.com
>> C:\script.txt echo abcd
>> C:\script.txt echo abcd
>> C:\script.txt echo cd Aggregation
>> C:\script.txt echo put C:\Eatecwin\data\SFO1368_EatecLite.zip
>> C:\script.txt echo bye
& then launching the ftp session
%windir%\ftp.exe -s:C:\script.txt
when i run the script, IE is launced & a FTP folder error message displayed.
& the address bar of the browser contains ftp://ftp.exe/
any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 03:18 PM
тАО08-28-2002 03:18 PM
Re: ftp script launches browser
Yes:
(1) install linux
(2) use perl to script ftp
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2002 12:05 AM
тАО08-29-2002 12:05 AM
Re: ftp script launches browser
Anyways, if you are running winnt, the script would have to be %windir%\system32\ftp.exe. Have you tried running "%windir%\ftp.exe -s:C:\script.txt" from the command line?
Cheers!
James
PS: Harry has a point - this is a HPUX forum, not windows. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2002 02:51 AM
тАО08-29-2002 02:51 AM
Re: ftp script launches browser
BTW, you can get perl, like James said, for your M$ thing and script it using perl. And guess what? you could actually have ERROR HANDLING. I know it's something new to M$ machines, but there's no rule that says software you write can't have error detection and corrective action.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2002 06:39 AM
тАО08-29-2002 06:39 AM
Re: ftp script launches browser
This was happening to me on a Win98 machine, so I copied ftp.exe from a Win95 machine (to another folder - not overwriting the original), and called the copied one explicitely:
C:\utils\ftp.exe ...etc
And it worked OK.
My only guess is that newer versions of ftp.exe are browser-aware, the older on is not.
I could be wrong but it solved the issue for me.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2002 08:19 AM
тАО08-29-2002 08:19 AM
Re: ftp script launches browser
you problem originates form "Windows Explorer", NOT from "Internet Explorer", as the default handler for "FTP" is registerd for the former to be the latter...
You may have to unregister the "FTP" handler from your "Windows Explorer"!
Second, the first two lines of the input file to the "-s" option of M$'s FTP client have to be username, and password, and the target node is to be specified on the command line:
C:\> type script.txt
joe
secret
cd Aggregation
put C:\Eatecwin\data\SFO1368_EatecLite.zip
bye
C:\> %windir%\ftp.exe -s script.txt ftp.abc.com
And third, why not use an FTP client better than the one supplied by M$? Like the (free) one from CYGWIN:
http://sources.redhat.com/cygwin
HTH,
Wodisch