There is no real VMS equivalent for the dd command.
The closest thing is to mount the disk as a foreign device. Then you might try backup to copy data towards it. The copy command won't work I think, though it does so on a foreign mounted tape.
Hans
------Origineel bericht------
Van: Sampsa Laine
Afzender: owner-hecnet at Update.UU.SE
Aan: hecnet at Update.UU.SE
Beantwoorden: hecnet at Update.UU.SE
Onderwerp: [HECnet] N00b question - dd equiv on VMS
Verzonden: 25 oktober 2011 20:44
I want to write the contents of a file directly onto a device, like you would on say Unix with dd:
dd if=infile of=/dev/outdevice
How do I do this on VMS?
On 25-10-2011 20:44, Sampsa Laine wrote:
I want to write the contents of a file directly onto
a device, like you would on say Unix with dd:
dd if=infile of=/dev/outdevice
How do I do this on VMS?
What about the LD driver...?
- MG
I want to write the contents of a file directly onto a device, like you would on say Unix with dd:
dd if=infile of=/dev/outdevice
How do I do this on VMS?
Depending on the nature of the "outdevice", it could be as simple as "COPY infile device:".
If the device is one that is typically mounted, like a disk or tape, then it would have to have its media mounted, perhaps with MOUNT/FOREIGN if you want the raw data written to the device without worrying about any sort of file structure.
What kind of device is "outdevice"?
--Marc
On 25-10-2011 17:42, Sampsa Laine wrote:
Anyone have this hanging around?
Wouldn't you rather run V8.3-1H1? Or do you
specifically want V8.3, for comparison or so?
- MG
I want to write the contents of a file directly onto a device, like you would on say Unix with dd:
dd if=infile of=/dev/outdevice
How do I do this on VMS?
Good points!
As one additional thing to consider, I just remembered that the ftp protocol don't really expect to deal with wildcards. mget and friends actually do a DIR, and then applies the command to every file listed by the initial DIR.
I can't remember if any real wildcarding is allowed at all in ftp. I should know once I've implemented my ftp for RSX. (It's probably a couple of weeks away.)
Johnny
On 2011-10-21 18.31, Paul_Koning at Dell.com wrote:
In ftp, there are separate commands for wildcard operation -- for example "mget" instead of "get" and "mdelete" instead of "rm". That probably accounts for both issues.
It may also be that ; gives trouble because it's a Unix shell character. If so, you could use the TOPS-20 style version delimiter "." -- that works on VMS also.
paul
-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-hecnet at Update.UU.SE] On Behalf Of Johnny Billquist
Sent: Friday, October 21, 2011 12:05 PM
To: hecnet at Update.UU.SE
Subject: Re: [HECnet] Wildcards using MULTINET FTP server, Linux client?
On 2011-10-21 17.18, Sampsa Laine wrote:
I'm trying to do a rm *.*;* in an FTP script and get this error:
550-Failed to delete directory DKA0:[ARCSIGHT]*^.log^;*.dir;
550 The file specification must contain a name, type and version number (even if wildcarded).
How do I get rid of those stupid ^'s?
I'd be more worried about where the ".dir;" at the end comes from...?
Johnny