Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I'm new to Linux world, and would like to know the way on running a shell script (inside is some file copy and command line ant) after login (like ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    2

    Startup script after login

    Hi,

    I'm new to Linux world, and would like to know the way on running a shell script (inside is some file copy and command line ant) after login (like a batch file I normally put in Windows startup). I've tried to put it in /etc/rc.local, and apparently it's called before login. FYI, I'm using RHEL5.

    Any idea ?

    Thanks

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Are you logging into the command line or a GUI. If its a GUI what desktop environment or window manager are you using?

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    2
    GUI. It's X11 (I'm using what's coming with RedHat 5).

  4. #4
    Linux Newbie Tutku's Avatar
    Join Date
    Jul 2007
    Location
    Izmir / Turkey
    Posts
    167
    You can use Starup Applications of your desktop environment.

  5. #5
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You could look in your GNOME preferences for an entry called "Sessions" and add commands to run your script in there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...