Hello,
I'm writting a little shell script.
This script contains 2 commands.
The first one, has to be executed in a new terminal.
The second one, in the terminal I executed my script.
The first command, is gonna make some calculations so it's gonna take some time (I need to see this information).
Any idea? Thank you all.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
basic shell scripting
-
- Posts: 183
- Joined: 2014-10-27 21:28
Re: basic shell scripting
could have sworn -e would be what you want, but the opened terminal would close right away.
What about:
"tee" comes to mind, to also write a logfile, but i don't get it sorted with a "forked" xterm. There should be a way to also log the calcualations (and i would really do that), but out of box i don't know.
What about:
Code: Select all
xterm -hold -e "echo foo" &
echo foo
exit 0
Give me convenience or give me death.
Re: basic shell scripting
well what do you mean terminal ? do you mean /dev/pty, (or better, /dev/tty) ?
you can use chvt(1) to change terminals in a script. to open one you can use gettty perhaps without login, run by the script, depends on your needs
or do you you mean screen output ? (for that, fbcon is spiff)
you can use chvt(1) to change terminals in a script. to open one you can use gettty perhaps without login, run by the script, depends on your needs
or do you you mean screen output ? (for that, fbcon is spiff)
Re: basic shell scripting
printf(1) "hello world\n" >> /dev/tty2 # if tty2 is there, if you just want output
bash can redirect streams (files that are copied to /dev/xxx) and even IP traffic (well awk can). and sockets are yet another trick.
but i'll stop there. there are just too many ways withotu knowing what you want
bash can redirect streams (files that are copied to /dev/xxx) and even IP traffic (well awk can). and sockets are yet another trick.
but i'll stop there. there are just too many ways withotu knowing what you want