LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 (https://www.linuxquestions.org/questions/linux-newbie-8/script-to-open-pseudo-terminal-at-user-login-to-gui-ubuntu-kiwi-10-04-a-846645/)

zev42 11-26-2010 01:36 AM

script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04
 
hello all,
I've been able to write a basic script that opens a terminal and echo's a lil message
my issue, i want it to open its pseudoterminal as soon as i log into GUI
the script:

Code:

#!/bin/bash
if [ $1 = "start" ]
then
        echo `gnome-terminal -x bash -c "echo 'standard daemon modified' ; bash"`
        sleep 4
elif [ $1 = "stop" ]
then       
        echo "standard daemon executed"
        sleep 4
elif [ $1 = "restart" ]
then
        echo "standard daemon resurrected"
        sleep 4
fi

ive tried putting it in /usr/bin as an .sh file
while simultaneously adding it to the /user/share/gnome/autostart dir

also, editing the .bashrc and or .bash_profile (s) in /home/*user*
and other locations only once yeilded my chosen echo, and that only after i had opened the pseudo terminal manually.

any and all help is most appreciated, im not looking for a handout, but nudges are good!
(note, the script is chmod'd to 755, and hence, executable by root or reg users. thx)

catkin 11-26-2010 09:55 PM

Duplicate thread reported. Earlier thread is http://www.linuxquestions.org/questi...0-04-a-846643/

Tinkster 11-26-2010 10:35 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Dupe #4 of 4 closed.


All times are GMT -5. The time now is 02:38 PM.