How to Open .txt file in LAMMPS - lammps

I am trying to run an in.file in lammps, but I keep getting an error saying it cannot open the .txt file. The last command that it stops at is: 'molecule ID file.txt file2.txt file3.txt'
The file it cannot open is file.txt, yet it is all spelled the same. Please help! Thank you!
I tried renaming the files but that did not work

Related

postgreSQL COPY TO is producing a corrupted file

COPY sqllearning.superstore_people
TO 'C:\Windows\Temp\sup_people.csv'
WITH DELIMITER ','
CSV HEADER;
When I open the csv file either in notepad or excel I get an Error that says:
Excel cannot access 'file.csv', the document may be read only or encrypted.
file.csv cannot be accessed. the file may be corrupted, located on a server that is not responding, or read- only
Any tips on how to resolve this would be appreciated. Thanks!
I faced similar issue before. I solved it by checking and setting ownership of the entire folder and all its subfolders and files for current user (in Windows - right click on the folder - properties - security). Maybe it would help for you also

Save as a .txt file CMD/powershell outputs

I write a command like tree and all outputs printed on the console.
I wanna save the printed outputs as a .txt file, the file path is gonna set the target terminal path.
How can I do that?
This line does what you are asking for. It should work both in CMD and PowerShell.
tree >> myfile.txt

QCAT ISF to PCAP

I heard there was a way to convert an ISF file to PCAP using QCAT by command line but I've not found a way to do so with anything I've read or searched for on the internet.
Anyone know of how to perform this action?
Thanks
From a short Qualcomm slide show:
QCAT runs cmd line to generate the PCAP/TXT. Customer can run cmd line option to generate PCAP/TXT
Executable: C:\Program Files (x86)\Qualcomm\QCAT 6.x\Bin\PCAP Generator.exe Usage: PCAP Generator.exe [input_file] [output_path] [-option]
This command converts a file or directory of .qmdl files into a single .hdf file. The .hdf file will be named the same as the original log file or the directory of the input but with a .hdf extension.
QCAT –hdf file
or
QCAT –hdf directory

soffice how to get information error

I'm trying to convert docx and xlsx files to pdf.
I have cgi perl script on server it worked fine but now it doesnt.
I didnt do any change.
When I try:
system("export HOME=/tmp && soffice --headless --convert-to pdf --outdir pdf/LgfpQJtC 'pdf/LgfpQJtC/example.docx'");
print"$?";
I get:
19712
The file example exist and it's in right directory.
But pdf file wont create.
When I run the same command as root in command line it works fine.
I tried set full acces to directory and file but it didnt help.
Is there any way to get more information about error?
Thanks for any help.

Matlab, dos() command : files remain "in use"

After executing some simple commands like
dos('copy *.txt new.txt', '-echo')
dos('echo. 2 > EmptyFile.txt', '-echo')
I tried to delete the folder in which these files were created. However, Windows gives me the message
"cannot delete "FolderName": the folder is being used by another person/program".
I have to close Matlab to make it work.
How do I solve this? I guess it's something like closing the "session" of cmd commands...
What you're not showing is the change of working directory to your folder. Windows won't let you delete a folder that a process has as a current working directory.
The solution is simple: change the working directory out of that folder. Say:
cd('..')