A question about terminal


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users A question about terminal
# 1  
Old 02-23-2010
A question about terminal

hi, I sealed a linux app in a pc as an embeded device..
I added several users in my linux system, of coz i am the root user...well, after i saled my products to customers, i want my products run like a embeded devices when they connect the system with terminals... i got a way out.. I want to bind the managing app to a user, that is : when some user connect to the system, a certain app automatically opened, when the app closed, the terminal quits....
however, this is just a way, I dunno how to implement it programmally
can you gurus give me any suggestion..
all appreciated...thanxSmilie
# 2  
Old 02-23-2010
There is typically a "at login" script which is executed only by a login shell.

Bourne Shell
~/.profile

Bash Shell
~/.bash_profile
# 3  
Old 02-23-2010
Bourne shell is known as BASH.
# 4  
Old 02-23-2010
Quote:
Originally Posted by abubacker
Bourne shell is known as BASH.
That is not correct. Bash is the acronym for the Bo(u)rne again shell, a descendant of the original Bourne Shell (sh) and the Korn Shell (ksh), with a few features borrowed from the C Shell (csh).
# 5  
Old 02-23-2010
Quote:
Originally Posted by macroideal
when some user connect to the system, a certain app automatically opened, when the app closed, the terminal quits....
Use the exec command to start the executable in your .bashrc (bash) or .profile (ksh).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies

2. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies

3. UNIX for Dummies Questions & Answers

Does DOS has a terminal or pseudo terminal?

I am wondering if the DOS console works like the unix terminal? (1 Reply)
Discussion started by: vistastar
1 Replies

4. UNIX for Dummies Questions & Answers

Dumb gnome terminal question.

I've searched and searched but either I'm not using the right key words or the information isn't in print anywhere. I'm running Cent 5.3 and I have a number of terminal profiles setup to ssh into some of my Unix servers at work, what I'm trying to do is setup shortcuts on my desktop to those... (3 Replies)
Discussion started by: nixnoob
3 Replies

5. UNIX for Dummies Questions & Answers

Gnuplot wxt terminal vs x11 terminal

Hi, I installed ubuntu recently on my pc. And I installed gnuplot as well. When I first started working with gnuplot it was working . I did a plot and when I wanted to fit my data something happened and not the default terminal of gnuplot is xwt! I changed it to: set terminal x11, but it... (0 Replies)
Discussion started by: cosmologist
0 Replies

6. UNIX Desktop Questions & Answers

Unix Terminal question

Hi, I'm new here, but I have a quick small question. I'm sorry if it sounds stupid, but I'm new to the UNIX world after using VMS (or Windows) my entire life. I my Mac runs Leopard, and I was wondering; My friend me through Mac's "Terminal" you can create and program your own applications by... (2 Replies)
Discussion started by: Kcahintosh19
2 Replies

7. OS X (Apple)

Terminal Question...

I have a file I need to run in Terminal. On my friend's computer it shows up under Get Info as a Unix Executable File, but on my computer it shows it as a Document file and doesn't run in Terminal. It doesn't show a file extension either. I also have a .cmd file it also thinks is a document. both... (2 Replies)
Discussion started by: bobknob
2 Replies

8. UNIX for Advanced & Expert Users

Pseudo-terminal will not be allocated because stdin is not a terminal.

I am trying to automate a SSH login using Keys using the following command ssh -i id_rsa usernamw@ipaddr. I am successful in doing this and i am getting the Warning Screen and I logon successfully. but when I am executing the command tail -1cf put.dat | ssh -i id_rsa username@ipaddr > get.dat ... (1 Reply)
Discussion started by: Shivdatta
1 Replies

9. UNIX for Dummies Questions & Answers

Mac OS X/UNIX/Terminal Question

Hey everyone I'm new to UNIX due to the new Mac OS X operating system and would like some help. I'm trying to send an email via the UNIX-Shell-Terminal i Mac OS X, (it's called darwin) How do I do that? When I enter the Command mail I can send messages to root and with the command -forward... (4 Replies)
Discussion started by: onkel
4 Replies

10. UNIX for Advanced & Expert Users

connecting to unix through hyper terminal - as a dumb terminal

I just changed from windows NT to XP and I am no longer able to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)
Discussion started by: michelle
2 Replies
Login or Register to Ask a Question