Writing txt files in the virtual machine

17 views
Skip to first unread message

oscar.g...@gmail.com

unread,
Apr 8, 2019, 5:33:33 PM4/8/19
to PAN Workshop Series on Digital Text Forensics
Dear team,

As part of a pre-processing I need to write some txt files in the virtual machine before predicting.

I have tested the script in my laptop and it works great.

I have set as many prints in my code as needed to double check everything and the unique conclusion is that my script is not able to write txt files in the virtual machine.

I was able to write txt files running some other sw, but not from inside the script.

Am I missing something I should figure out?

Thanks in dadvance for your comments.

Òscar.

Martin Potthast

unread,
Apr 8, 2019, 5:42:46 PM4/8/19
to pan-workshop-series
Dear Òscar,

I'm not sure if the information you provided is sufficient to form a hypothesis as to why this is happening. 

Very much depends on where you want to create files and write to them.
For example, the path $inputDataset is read-only, so that you cannot change any files there.

You should be able to write in /tmp and in the path $outputDir.

In order to check whether you can create files, you might simply run the command touch /any/path/you/wish/filename
If that works, you can create files at least.

Best,
Martin


--
--
You received this message because you are subscribed to the Google Group "PAN".
Visit this group at http://groups.google.com/group/pan-workshop-series
To unsubscribe send email to pan-workshop-se...@googlegroups.com.
---
You received this message because you are subscribed to the Google Groups "PAN Workshop Series on Digital Text Forensics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pan-workshop-se...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Jun-Prof. Dr. Martin Potthast
Leipzig University

oscar.g...@gmail.com

unread,
Apr 8, 2019, 7:11:06 PM4/8/19
to PAN Workshop Series on Digital Text Forensics
Dear Martin,

I'm writing some temporary files to ~/some_path.
I have checked that the files are created during script execution but deleted once the script exits.

I'm gonna change the paths to be set to some folders in /tmp. Will let you know if this works.

From the shell I can create files and folders at home. Weird.

Cheers.

Òscar.

Martin Potthast

unread,
Apr 9, 2019, 12:56:22 AM4/9/19
to pan-workshop-series
Hi  Òscar,

access to your home should work, though. Something else must be preventing this.

Martin

--
--
You received this message because you are subscribed to the Google Group "PAN".
Visit this group at http://groups.google.com/group/pan-workshop-series
To unsubscribe send email to pan-workshop-se...@googlegroups.com.
---
You received this message because you are subscribed to the Google Groups "PAN Workshop Series on Digital Text Forensics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pan-workshop-se...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages