runCommand with paramters for output.

38 views
Skip to first unread message

Poul Aschenbrenner

unread,
Apr 6, 2023, 12:43:22 PM4/6/23
to mozilla-rhino
I have try several attempts to get output to a file. But with no luck. 

runCommand("ls", "-l", ">", "testfile.txt") 

Do any know another way for doing this ??
I am running on Linux but Rhino is running as embedding in the system. 
And there is no support on this. 

Hope any one here has a clue. 


P

unread,
Oct 23, 2023, 9:44:38 AM10/23/23
to mozilla-rhino
Have you looked into the docs of the runCommand? https://rhino.github.io/tools/shell/#predefined-properties

Maybe use the `output` parameter
Reply all
Reply to author
Forward
0 new messages