- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Prolbem downloading file with kermit and zmodem
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
Forums
Discussions
Discussions
Discussions
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
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
01-26-2006 07:18 PM
01-26-2006 07:18 PM
Prolbem downloading file with kermit and zmodem
ok, what i want to do seems quite simple: dial into a Mailbox, send username und password, wait for a file to be transfered with zmodem-protokoll, logoff.
My first approach to do this job is the following kermit-script:
define LINE /dev/cul1p2
define PHONENUMBER 0123456789
define SPEED 19200
define MODEM microlink
define usage exit 1 {
Usage: do_download userid password
}
; check commandline
if not def \%1 usage
if not def \%2 usage
; here we go...
set line \m(LINE)
if fail exit 1
set speed \m(SPEED)
if fail exit 1
set modem \m(MODEM)
if fail exit 1
set escape-character ^C
set dial ignore-dialtone on
; dial in
dial \m(PHONENUMBER)
if fail exit 1
; send username
output \%1\13
; send password
output \%2\13
connect
; wait for mailbox to start zmodem-filetransfer. Mailbox will hangup after that.
exit 0
The problem is, that this script works fine, if i start it from a shell by hand.
But if i put it into my crontab-file, nothing happens after the dial-in. no filetransfer, nothing. After a timeout, the connection get's closed and that's all.
Any indeas? Maybe kermit is the problem and i should use a different way.
The system is a rp3440 with HP-UX 11.11
Regards
Dirk Mika
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 07:21 PM
01-26-2006 07:21 PM
Re: Prolbem downloading file with kermit and zmodem
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 07:24 PM
01-26-2006 07:24 PM
Re: Prolbem downloading file with kermit and zmodem
Check /var/adm/cron/log for more information.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 07:48 PM
01-26-2006 07:48 PM
Re: Prolbem downloading file with kermit and zmodem
it is working rigth upto the dialin. The only difference between starting it from a shell and beeing started by cron is that the filetransfer is not started.
Regards
Dirk Mika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 07:54 PM
01-26-2006 07:54 PM
Re: Prolbem downloading file with kermit and zmodem
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:09 PM
01-26-2006 08:09 PM
Re: Prolbem downloading file with kermit and zmodem
and the environment of the cron-deamon is quit "small".
i will check if there is any variable, which could have an influence.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:15 PM
01-26-2006 08:15 PM
Re: Prolbem downloading file with kermit and zmodem
you didn't mention the exact command you enter via crontab.
I mean, did you set the -B (batch option) ?
Jean-Yves
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:19 PM
01-26-2006 08:19 PM
Re: Prolbem downloading file with kermit and zmodem
it will give it a try.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:28 PM
01-26-2006 08:28 PM
Re: Prolbem downloading file with kermit and zmodem
it didn't make a difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:32 PM
01-26-2006 09:32 PM
Re: Prolbem downloading file with kermit and zmodem
I wonder if there's a problem reading the commandline? Try hardcoding the username and password as a temporary test, and removing the commandline handling code.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2006 12:32 AM
01-27-2006 12:32 AM
Re: Prolbem downloading file with kermit and zmodem
i tried it with user and pass harcoded but with no success. Same result.
This ist the output i get, starting it by hand:
Trying: 0123456789...
Device: /dev/cul1p2, modem: microlink, speed: 19200
Dial timeout: 70 seconds
To cancel: type your interrupt character (normally Ctrl-C).
Call complete: "CONNECT 33600/LAPM/V42BIS".
Connecting to /dev/cul1p2, speed 19200.
The escape character is Ctrl-\ (ASCII 28, FS)
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
**B0
----------------------------------------------------
Receiving: NOLDT.BEF
Bytes received: 130/ 130 BPS:244
Transfer complete
----------------------------------------------------
sz 3.45 03-28-97 finished.
+++
Closing /dev/cul1p2...OK
And this is what i get from the cronjob:
Connecting to /dev/cul1p2, speed 19200.
The escape character is Ctrl-\ (ASCII 28, FS)
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
(Back at byzmy6)
----------------------------------------------------
Closing /dev/cul1p2...OK
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
Regards
Dirk Mika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 09:28 PM
01-31-2006 09:28 PM
Re: Prolbem downloading file with kermit and zmodem
finally i found a solution, although i do not actually know the real cause.
This ist the script, which works for me:
define LINE /dev/cul1p2
define PHONENUMBER 0123456789
define SPEED 19200
define MODEM microlink
define usage exit 1 {
Usage: do_download userid password
}
; check commandline
if not def \%1 usage
if not def \%2 usage
; here we go...
set line \m(LINE)
if fail exit 1
set speed \m(SPEED)
if fail exit 1
set modem \m(MODEM)
if fail exit 1
set escape-character ^C
set dial ignore-dialtone on
; dial in
dial \m(PHONENUMBER)
if fail exit 1
; send username
output \%1\13
; send password
output \%2\13
; start rz to receive file with z-modem
redirect rz
; close connection
close
exit 0