You can do the above using some other form of IPC (e.g. (This of course requires adding an 'echo' command at the end of the script, or after the 'source' command.) your script) actually writes something there. This will wait until another program (e.g. You can create a named pipe and try to read from it. You can use inotify (Linux) or kqueue (FreeBSD) to watch the directory the kernel will tell you when the file shows up. You can poll (periodically check) whether the file has showed up. This is a poor method of running a script, but if you must use it, then your options are limited: It even doesn't know that those keypresses actually correspond to a script, much less know when that script is going to finish. You aren't telling tmux to run a command and wait you're telling it to simulate some keypresses. In fact, even tmux doesn't have this information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |