hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Simple question on pausing output in shell
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Simple question on pausing output in shell

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-11-2006, 11:12 AM
GeorgeC GeorgeC is offline
Web Hosting Master
 
Join Date: Sep 2000
Posts: 1,003

Simple question on pausing output in shell


Hi:
When I run the command:

mysqladmin -u root -p variables

Just wondering, how do I pause the output and break it up into pages? I've tried adding "|more", though it seems to only display one new line at a time when I press enter.

Better yet, what I really want is to capture the output of the above command to email to my sys admin. I'm sure there's an easier way...

Thanks!

Reply With Quote


Sponsored Links
  #2  
Old 01-11-2006, 11:17 AM
Slidey Slidey is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: UK
Posts: 2,560
pipe it into mail

mysqladmin -u root -p variables | mail admin@sysadmins-r-us.com

Reply With Quote
  #3  
Old 01-11-2006, 07:09 PM
GeorgeC GeorgeC is offline
Web Hosting Master
 
Join Date: Sep 2000
Posts: 1,003
Thanks, I knew I was doing it all wrong. Thx again!

Reply With Quote
Sponsored Links
  #4  
Old 01-11-2006, 07:22 PM
Slidey Slidey is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: UK
Posts: 2,560
and if you press space instead of enter, it'll scroll a page at a time

use 'less' instead of 'more' to allow you to scroll both ways in the file

Reply With Quote
  #5  
Old 01-13-2006, 12:18 AM
linux-tech linux-tech is offline
<?require_once("life")?>
 
Join Date: Sep 2002
Location: inside your network
Posts: 9,548
You could also send it to a file, then edit it with your editor
mysqladmin -u root -p variables >> file.txt
Then edit it with whatever you want, or just look at it through a web page.
This is probably the best way to do what you're looking for, as you'll have your information on hand at a later date as well if you need it.

__________________
Linux Tech Networks Reliable, Affordable Linux administration and monitoring since 2002

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Rackspace Launches OpenStack-Powered Cloud Block Storage Solution Web Hosting News 2012-10-23 10:16:40
Rackspace Blog Looks at Easy Outsourcing for App Development Blog 2012-03-05 19:07:48
Google Data Centers Consume 50 Percent Less Energy than Average: Report Web Hosting News 2011-09-09 15:19:21
Web Host ServerBeach Now Offers Virtual Servers Web Hosting News 2011-08-02 18:44:09
Indian Leaders to Form Guidelines for Improving Data Center Energy Efficiency Web Hosting News 2011-06-20 15:59:38


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?