LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02: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, 03:28 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

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



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

All times are GMT -5. The time now is 08:56 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
Open Source Consulting | Domain Registration