Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. [urgent] linux help

[urgent] linux help

Scheduled Pinned Locked Moved System Admin
linuxasp-nettoolshelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sam 2006
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • S Sam 2006

      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

      S Offline
      S Offline
      Sam 2006
      wrote on last edited by
      #2

      i've found a way to do this, in /home/user/.bash_profile i added:

      konsole -e /home/admin/path/to/my/script &

      R 1 Reply Last reply
      0
      • S Sam 2006

        i've found a way to do this, in /home/user/.bash_profile i added:

        konsole -e /home/admin/path/to/my/script &

        R Offline
        R Offline
        r3dlp
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups