LinuxQuestions.org

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

zev42 11-26-2010 03:44 PM

script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04
 
hello all, (sorry to bump the topic, but i had over 100 views, and no reply)
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)

stress_junkie 11-26-2010 04:35 PM

Starting a new thread is not bumping. Threads that have zero replies will automatically cycle to the top of the zero reply list periodically for several days. If nobody has replied then the people who read your post did not have an answer.

These are duplicates of this thread.
http://www.linuxquestions.org/questi...0-04-a-846649/
http://www.linuxquestions.org/questi...0-04-a-846645/
http://www.linuxquestions.org/questi...0-04-a-846643/

GrapefruiTgirl 11-26-2010 04:45 PM

zev42,

kindly do NOT post your question in multiple places. Only once is fine. As a general rule, wait at least 24 hours before re-considering your thread if it has no replies. But do NOT post it again - instead, add some more useful information to the question, or show us what progress you have made since posting the original thread.

Your three other threads identical to this one, have been reported and will ultimately be closed, so please keep the discussion in THIS thread only. Thank you!

zev42 11-26-2010 05:54 PM

Quote:

Originally Posted by GrapefruiTgirl (Post 4172148)
zev42,

kindly do NOT post your question in multiple places. Only once is fine. As a general rule, wait at least 24 hours before re-considering your thread if it has no replies. But do NOT post it again - instead, add some more useful information to the question, or show us what progress you have made since posting the original thread.

Your three other threads identical to this one, have been reported and will ultimately be closed, so please keep the discussion in THIS thread only. Thank you!

i am very sorry, and assure you no ill will was intended,
i really do try not to post at all, unless i am truely stuck,
( my excuse, though a poor one is: ) i had been at this 3 days by the time i posted,
my spamming was duly immature as i was impatient, and i again, apologize

much thanks
-zev

Tinkster 11-26-2010 10:34 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 #2 of 4 closed....

http://www.linuxquestions.org/questi...0-04-a-846643/


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