I want to get the string echoed from a bash script (windows users can just post.Replace("bash", "batch") )..
I can see a pretty simple option: save the string into a file and just load it in BlitzMax.
However, that seems silly, can't we just delay all printing on standardio just before we execute the script and then readline the string?
Example code (Linux):
Script:
I can see a pretty simple option: save the string into a file and just load it in BlitzMax.
However, that seems silly, can't we just delay all printing on standardio just before we execute the script and then readline the string?
Example code (Linux):
SuperStrict Framework brl.StandardIO system_("sh mtime.sh /home/tim/scripts/etc/getecho.bmx") End
Script:
#!/bin/bash # MTIME=$(/bin/ls -lo "$@" | awk '{print $5,$6}') echo $MTIME