LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03: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, 04: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: 335Reputation: 335Reputation: 335Reputation: 335
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, 04:45 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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, 05: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, 10:34 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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



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 10:39 AM
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Ubuntu 1 11-27-2010 03:28 AM
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Linux - Newbie 2 11-26-2010 10:35 PM
i m running ubuntu 8.10 .unable to login as a user in gui mode. chandan766 Linux - Newbie 1 04-05-2009 05:03 PM
auto execution of script on ubuntu when user login Mr.J Ubuntu 2 07-04-2008 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration