HP3000-L Archives

February 1999, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Thu, 4 Feb 1999 02:01:01 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
Chris suggested (what I did not think of)...

>Just a thought; is you have Samba running (even without it you can get the
>smbclient part working) you can transfer a file from the HP3000 directly to
>a shared directory on a PC (networked only; not serially connected) right
>from a job on the 3000.

It would look similar to...

!job xferpc,user.acct
!# you mentioned weekly run
!stream myself ;in=7
!# convert textfile to bytestream format
!xeq /bin/tobyte "-at MPEFILE PCFILE1"
!# might need to add CR for DOS text
!xeq /bin/awk " '{print $0 ""\r""}' PCFILE1 > PCFILE2 "
!# now send to shared Windows drive
!xeq /usr/local/samba/bin/smbclient &
! "\\yourPC\pcShare passwd -U pcuser -c 'copy PCFILE2 \dir\file.txt'"
!# might want to clean up temp files
!xeq /bin/rm "PCFILE1 PCFILE2"
!# done
!bye

The above might need some fine tuning or bug fixes as I have
not tested it myself (sitting at home), but shows the concept.

Lars.

ATOM RSS1 RSS2