Unstructured disk file conversion

379 Views Asked by At

I am working on TACL/OSS environment where I need to make a copy of unstructured disk file and then work on it. FUP DUP command creates a new copy of file which is unstructured one. I have code written in Unix for manipulating a file(.txt) tested on my local system. But the same code does not work for unstructured disk file. Is there any way to access(read/write/modify) the unstructured disk file on Tandem system through Unix or Python 2.7, OR able to convert that file into text format using TACL commands?

2

There are 2 best solutions below

2
Andy Simpson On

You should be able to use regular Unix-style tools with the file. Files in the local Guardian space are addressable through /G/disk/subvol/file

So my Guardian file $as.temp.test is the same as /G/as/temp/test

And in OSS I can do things like:

cat /G/as/temp/test
head -c 8 /G/as/temp/test

You will need the right tools in OSS of course and this won't work if you have an old operating system and the Guardian disk is virtual (but I think this was fixed about 6 years ago).

4
Pras On

Apart from what @Andy Simpson has mentioned about the format of path to be used You might also have to use edittoc to convert the guardian edit file to unix text file