LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Closed Thread
 
Search this Thread
Old 11-26-2010, 03:13 AM   #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,
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-27-2010, 04:28 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,543
Blog Entries: 54

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


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 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
LXer: Addendum Ubuntu 8.04 - Pseudo Root User - II LXer Syndicated Linux News 0 11-18-2008 11:50 AM
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 12:15 AM.

Main Menu
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