LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 (http://www.linuxquestions.org/questions/ubuntu-63/script-to-open-pseudo-terminal-at-user-login-to-gui-ubuntu-kiwi-10-04-a-846649/)

zev42 11-26-2010 03:13 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)

unSpawn 11-27-2010 04:28 AM

Please post your thread once and 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 duplicate one of four(!). FUP: http://www.linuxquestions.org/questi...0-04-a-846643/.


All times are GMT -5. The time now is 12:57 AM.