[urgent] linux help
-
hi all, i've just installed fedora core on my other pc. i've got a shell script i want to be executed when a specific user logs in. i need to be able to see the konsole/output. i've tried many different things but can't figure out how to do this. if i try to execute it via the
.bash_profile
file, the system logs in then just waits, because the script loops, and never ends. i can't see the output either. does anyone know how i can accomplish this? thanks in advance, sam -
hi all, i've just installed fedora core on my other pc. i've got a shell script i want to be executed when a specific user logs in. i need to be able to see the konsole/output. i've tried many different things but can't figure out how to do this. if i try to execute it via the
.bash_profile
file, the system logs in then just waits, because the script loops, and never ends. i can't see the output either. does anyone know how i can accomplish this? thanks in advance, sam -
i've found a way to do this, in
/home/user/.bash_profile
i added:konsole -e /home/admin/path/to/my/script &
Actually, all you really should have needed to do was run the script in the background (ie ~admin/path/to/my/script &). Yet, you'll probably find that if you were to try to run any binaries (or scripts) which read from/write to a terminal (like one of the /dev/tty* devices) or pseudo-terminal (like one of the /dev/pts/* devices) via that script, then those binaries will probably behave a little differently than you might expect. In that case, you have a couple options: force the binaries in question to run interactively, handle the respective SIGTTIN and/or SIGTTOU signals for those binaries.