I’m in a weird situation where I have a computer that only runs the commands I need if I run them through a special type of command window. I’ve found the shortcut to bring up that cygwin terminal is:
rxvt -ls
That shortcut gives me a new terminal that runs the commands I want properly, but I’d have to type them by hand that’s not what I’m wanting, I want to automate things that I need to do in there. I have a C# program that I’m trying to use that ability to run those commands hundreds of times for data collection.
The closest cmd.exe test command I can find is this:
rxvt -ls -e sh -c ls >> output.txt
I figured if I could output each command to hundreds of files i could at least be in business. I would then replace the ls with the command I need to get the info I need.
This makes a window pop up for a second then go away. No output file with the output appears.
Ryan Schreck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.