• Steam recently changed the default privacy settings for all users. This may impact tracking. Ensure your profile has the correct settings by following the guide on our forums.

bash script to automate input?


Your resident psycho hobo
im trying to get a script that will, upon start issue the command mountmst# (with # being 1-8 randomly) in a terminal, and automatically respond with input(this command brings up an enter password dialog, so i want to automate that) and leave the terminal up for normal use. upon exiting the terminal window(preferably by just hitting the X, but if thats not possible, issuing a command, like exitmst) run the commands syncmst# (same # as earlier) and unmountmst

is this doable?