Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2016, 02:52 PM
stuarttunstall's Avatar
stuarttunstall stuarttunstall is offline
Registered User
 
Join Date: Mar 2016
Posts: 18
SSH Commands

Hi

I have been testing SecureCRT with a few SSH commands to view logs on my server.. As a rule I have never really got "into" what I can do with SSH apart from backing up my database..

Now it looks like I will be purchasing SecureCRT I wanted to do more.. for instance I have just run this script

tail -f /var/log/exim_mainlog

Once this is running how to I stop this to go back to the prompt ready for the next script?

I am some what a novice were this is concerned..

Also do you know any useful scripts I can run

Stuart
Reply With Quote
  #2  
Old 03-22-2016, 03:05 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi Stuart,

Usually Ctrl+C is the combination that will interrupt output from the remote device. It's based on what the configuration is on the remote system. If you run the command stty -a, you should see output similar to:

Quote:
speed 38400 baud; rows 30; columns 73; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt echoctl echoke
It's the intr = that shows the interrupt combination. More info on stty can be found by running the command man stty. See, there are two more commands you can run.

Quote:
Also do you know any useful scripts I can run
But I am not really sure what you mean by the above. These are just commands and they would just be geared to whatever you need to accomplish on the remote system (cd, ls -al, etc.)

What sort of tasks do you want to accomplish on the remote system?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 03-23-2016, 01:39 PM
stuarttunstall's Avatar
stuarttunstall stuarttunstall is offline
Registered User
 
Join Date: Mar 2016
Posts: 18
Thank you... Control + c did the trick...

What I was looking at was a list of SSH command I can run to view stuff on the server... Although have had my server for 10 years, running my own vehicle enthusiast website I have only ever used Putty to do my back up of my database.. .

As I am almost certain to pay for SecureCRT now I thought I would get more out of it My sever host have given me some useful commands so far but the more the better...

I have searched for websites but can't really find any...

Thanks again for all your help...

Stuart
Reply With Quote
  #4  
Old 03-23-2016, 01:46 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi Stuart,

I cannot really answer that. Speaking of vehicles, SecureCRT is just the vehicle that connects you to the remote server.

Your best bet would be to run internet searches based on the OS of the remote system you are connecting to and they may have some tutorials for you.

Here are some general URLs:

http://www.unixguide.net/linux/linuxshortcuts.shtml
http://www.computerhope.com/unix.htm
http://www.linuxdevcenter.com/cmd/
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 03-23-2016, 01:50 PM
stuarttunstall's Avatar
stuarttunstall stuarttunstall is offline
Registered User
 
Join Date: Mar 2016
Posts: 18
Thank you : will take a look..
Reply With Quote
  #6  
Old 03-23-2016, 02:07 PM
stuarttunstall's Avatar
stuarttunstall stuarttunstall is offline
Registered User
 
Join Date: Mar 2016
Posts: 18
After all this excellent support I think I should buy the full licence...Lol

Question

I have run the following... to view apache logs... I started with "error log"

I first typed...

cd /usr/local/apache/logs/

then

vim error_log

which gave me a list...

How do I then exit that back to the prompt?

I did type exit but that did nothing..

Sorry for the stupid questions...I WILL learn Lol
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 10:21 AM.