New to Debian, a few questions
Hi all,
I'm getting pretty used to my debian installation, all I can say after having a casual interest in linux, I finally see why its so amazing. But I have a few small problems. Question 1 If I start an application from a terminal, how can I seperate the two. What I mean is... If I run Code:
$ gaim Question 2 Also, If I have a script Code:
#!/bin/sh 2) When I run the script from a terminal Code:
$ sh script.sh Question 3 lastly, how can I flag 'ls' to show one page of results at a time, so it wont run over the top of the terminal Question 4 How can I use a photo avatar with gaim |
hi there,
concerning gaim, instead of ctrl-c you can use ctrl-z and the type "bg". you put the job in the background. it is valid for any application called from the cli. regards slackie1000 |
Thanks for the reply.
Ctrl-z works a treat. I can now run other commands, and gaim stays as long as the terminal is not killed. So we are half way there. But.... when I type 'bg' the terminal returns [1]+ gaim & but when I close the terminal, gaim is still up |
Quote:
exactly. that exact how it should work. regards slackie1000 |
I haven't used gaim before, but in respects to using the same terminal, if you issue your command like: gaim & it will startup in the background of the terminal.
With respects to what you are doing with that shell script, I don't know if it can be done exactly that way... If you want gaim to start after you enter you X environment, and you are using kde go into the ~/.kde/Autostart folder and put your script (minus the crap about startx) in there and it should run just peachy, without having to use the ampersand. Your question about ls ls | more |
1) ambersanq ('&') is used in order to push the proc in the bg ex.
foo@bar:~/>gaim & [enter] starts gaim and send it to the background 2) ls | more or ls | less (more and less are like cat) ex more text.txt shows contents of text.txt page by page (same keys and functions with vi or vim) '|' the pipe sends one programms output to anothers input ex. ls ~/pictures/ | grep .psd -> lists only the *.psd files in your pictures folder ls -l ~/pictures/ | grep .psd | wc -l -> counts them (counts the lines of the output list) as for starting services NOT when the machine boots BUT when you login (console or X) try editing ~/.bashrc or KDEs and GNOMEs options linux is fun... but console is even more fun. Try learning the basic console tools like more, less, grep, ls, vi, cat cause nothing is easy without them. |
Thanks all,
I pretty much consider the problems resolved. Regards, Gavin |
All times are GMT -5. The time now is 04:37 PM. |