Re: Tape drives and Sun UNIX [message #1857] |
Thu, 24 March 1994 00:19 |
knipp
Messages: 68 Registered: January 1993
|
Member |
|
|
In article qhn@nps.navy.mil, olsen@physics.nps.navy.mil (Chris Olsen) writes:
> In article 72u@paperboy.gsfc.nasa.gov, dug@aol7.wff.nasa.gov (Doug Vandemark 2038) writes:
>>
>> An Idl I/O question:
>> Is it possible to read data from a tape device
>> under the SUN 4.1.1 OS (UNIX) by using standard
>> IDL IO functions open,read etc..?
>>
> I've done it on my sgi - just treated '/dev/tape' as a fileneame,
> and had no problem doing the following:
> openw, 2, 'filename'
> printf, 2, .....
> close, 2
>
> openr, 2, 'filename'
> readf,2, .....
> close, 2
>
> this was with the built in DAT drive - i have not tried the sun cartridge tape
>
> rc olsen
>
I did the same, but it did NOT work when reading/writing records
exceeding 8 kb. However it will work with
openr, unit, '/dev/rst1', /get_lun, /nostdio
readu, record, transfer_count=transfer_count
Karl
____________________________________________________________ __________________
__ ____ __
/ // _ \ / / Karlheinz Knipp phone: +49 511 - 762 4922
/ // /_/ // / University of Hannover fax: +49 511 - 762 2483
/ // ____// / Institute for Photogrammetry
/ // / / / Nienburger Str.1
/_//_/ /_/ FRG 30167 Hannover 1 email: knipp@ipi.uni-hannover.de
|
|
|
Re: Tape drives and Sun UNIX [message #1865 is a reply to message #1857] |
Wed, 23 March 1994 07:49  |
olsen
Messages: 5 Registered: March 1994
|
Junior Member |
|
|
In article 72u@paperboy.gsfc.nasa.gov, dug@aol7.wff.nasa.gov (Doug Vandemark 2038) writes:
>
> An Idl I/O question:
> Is it possible to read data from a tape device
> under the SUN 4.1.1 OS (UNIX) by using standard
> IDL IO functions open,read etc..?
>
I've done it on my sgi - just treated '/dev/tape' as a fileneame,
and had no problem doing the following:
openw, 2, 'filename'
printf, 2, .....
close, 2
openr, 2, 'filename'
readf,2, .....
close, 2
this was with the built in DAT drive - i have not tried the sun cartridge tape
rc olsen
|
|
|
Re: Tape drives and Sun UNIX [message #1870 is a reply to message #1865] |
Wed, 23 March 1994 00:53  |
knipp
Messages: 68 Registered: January 1993
|
Member |
|
|
In article 72u@paperboy.gsfc.nasa.gov, dug@aol7.wff.nasa.gov (Doug Vandemark 2038) writes:
>
> An Idl I/O question:
> Is it possible to read data from a tape device
> under the SUN 4.1.1 OS (UNIX) by using standard
> IDL IO functions open,read etc..?
>
> I've made some fledging attempts with no success.
>
> Thanks for any information.
Try using
OPENR, /NOSTDIO and
READU, TRANSFER_COUNT=TRANSFER_COUNT
where TRANSFER_COUNT equals the number of elements to read, NOT
the number of bytes.
Hope this helps, Karl
____________________________________________________________ __________________
__ ____ __
/ // _ \ / / Karlheinz Knipp phone: +49 511 - 762 4922
/ // /_/ // / University of Hannover fax: +49 511 - 762 2483
/ // ____// / Institute for Photogrammetry
/ // / / / Nienburger Str.1
/_//_/ /_/ FRG 30167 Hannover 1 email: knipp@ipi.uni-hannover.de
|
|
|
Re: Tape drives and Sun UNIX [message #1871 is a reply to message #1870] |
Tue, 22 March 1994 21:45  |
landsman
Messages: 93 Registered: August 1991
|
Member |
|
|
In article <2mni0u$72u@paperboy.gsfc.nasa.gov>, dug@aol7.wff.nasa.gov (Doug Vandemark 2038) writes...
>
> An Idl I/O question:
> Is it possible to read data from a tape device
> under the SUN 4.1.1 OS (UNIX) by using standard
> IDL IO functions open,read etc..?
>
This doesn't exactly answer your question but Bill Thompson has written IDL
procedures that use the IOCTL function (so you need IDL V3.0 or later) to
emulate the intrinsic VMS IDL tape I/O procedures TAPWRT, TAPRD, REWIND,
SKIPF, etc. The procedures are available via anonymous FTP from
idlastro.gsfc.nasa.gov in the pro/tape_io directory (see the README file
there).
I know that these procedures will work on our SparcStation running Sun 4.1.1.
Wayne Landsman landsman@stars.gsfc.nasa.gov
|
|
|