LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Closed Thread
 
Search this Thread
Old 11-26-2010, 04:44 PM   #1
zev42
LQ Newbie
 
Registered: Sep 2010
Distribution: Unbuntu 10.04
Posts: 18

Rep: Reputation: 0
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)
 
Old 11-26-2010, 05:35 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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/
 
Old 11-26-2010, 05:45 PM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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!
 
Old 11-26-2010, 06:54 PM   #4
zev42
LQ Newbie
 
Registered: Sep 2010
Distribution: Unbuntu 10.04
Posts: 18

Original Poster
Rep: Reputation: 0
Lightbulb

Quote:
Originally Posted by GrapefruiTgirl View Post
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
 
Old 11-26-2010, 11:34 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Programming 1 12-07-2010 11:39 AM
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Ubuntu 1 11-27-2010 04:28 AM
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Linux - Newbie 2 11-26-2010 11:35 PM
i m running ubuntu 8.10 .unable to login as a user in gui mode. chandan766 Linux - Newbie 1 04-05-2009 06:03 PM
auto execution of script on ubuntu when user login Mr.J Ubuntu 2 07-04-2008 06:04 AM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration