LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Closing Stdin, Installing Mail Servers and Keyboard Shortcuts (https://www.linuxquestions.org/questions/linux-newbie-8/closing-stdin-installing-mail-servers-and-keyboard-shortcuts-366489/)

Xyrael 09-24-2005 04:13 AM

Closing Stdin, Installing Mail Servers and Keyboard Shortcuts
 
:newbie: Question One

When I use a program that reads from stdin, I don't know how to stop it! I mean things like gpg on its own. I end up Ctrl-Cing it, which I am sure isn't the best way. Please help!

:newbie: Question Two

Are there any other keyboard shortcuts I should know apart from Ctrl-C and -Z?

:newbie: Question Three

How do I set up a POP and SMTP server on a Debian box?

:newbie: Question Four
When I send shutdown -r -t 5 19:32 reason I can't end the input, so it cancels the shutdown! How do terminate it?

Thanks very much! (Note: I only have shell access to the above server.)

MasterC 09-24-2005 05:38 PM

Re: Closing Stdin, Installing Mail Servers and Keyboard Shortcuts
 
Quote:

Originally posted by Xyrael
:newbie: Question One

When I use a program that reads from stdin, I don't know how to stop it! I mean things like gpg on its own. I end up Ctrl-Cing it, which I am sure isn't the best way. Please help!

I believe this to be the best option. However, you can also switch to another terminal and ps or top to see what the pid is and kill -HUP or kill -15 it, but I'd prefer CTRL + C to that.
Quote:

:newbie: Question Two

Are there any other keyboard shortcuts I should know apart from Ctrl-C and -Z?


CTRL + ALT + F1-6 should switch you terminals. If you are switching from one to the other, you only need ALT + F1-6, CTRL is for switching out of X to a terminal. There are probably a billion of these really, for general use, I use the 2 you have listed.
Quote:

:newbie: Question Three

How do I set up a POP and SMTP server on a Debian box?

You follow a HOW-TO for the one you want to install ;) I'm a huge postfix fan with courier as my pop/imap server. With Debian, you are looking at something like 'apt get install postfix courier-imap'
Quote:

:newbie: Question Four
When I send shutdown -r -t 5 19:32 reason I can't end the input, so it cancels the shutdown! How do terminate it?

Thanks very much! (Note: I only have shell access to the above server.)
Not to sure on this one. It may be that the colons on the command are giving you problems. I don't really use an exact time ever, usually "NOW" suffices. You may benefit from removing your time-delay option (-t 5) to see if that helps.

Good Luck!

Cool

Xyrael 09-25-2005 02:16 AM

Thanks, that was a lot of information. But I still don't know how to stop stdin!

logosys 09-25-2005 03:08 AM

Quote:

Originally posted by Xyrael
Thanks, that was a lot of information. But I still don't know how to stop stdin!
Can you give an example of what is happening to you? I'm a bit confused...

Xyrael 09-25-2005 03:46 AM

Well, here is one particular example of what is happening to help you understand.

Bang in GPG.

It says 'Go ahead and type your message...'

And then stops, and allows me to input. How do I terminate this input?

Thanks!

MasterC 09-26-2005 03:13 AM

I don't use 'bang' but, it could be vim driven. In which case, to end, you type:
ESC
:wq!

The colon ( : ) tells it to stop taking input in the text file, and that you are giving it commands to do something with the text file, in this case, write then quit.

Cool


All times are GMT -5. The time now is 11:15 PM.