LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2010, 03:34 PM   #1
shanie
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Rep: Reputation: 0
Question Script smbstatus


Hi i need some help please,
for example i have wrote this so far:
while [ 1 ]; do smbstatus;sleep 20; done

this only loops and refreshes the smbstatus command.
but i want to continue loop.

So when there is a new connection and locked files i want it to send to
my email??


Thanks
 
Old 02-20-2010, 01:51 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
You will probably have to do a bit more work than that before people rush to help.

Have you tried to parse the smbstatus output to get the lines you want yet? Which lines are they, anyway? Have you tried to send mail from the command line yet?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the Windows equivalent of smbstatus? pwc101 General 5 07-21-2008 03:43 AM
smbstatus - displaying results jahjr Linux - Networking 2 07-25-2006 01:57 PM
smbstatus t_for_tom Linux - Networking 1 02-11-2005 12:59 PM
how to refresh smbstatus every 10 sec? bglnelissen Linux - Networking 2 10-28-2004 04:45 AM
mount -t smbfs / smbstatus jeffvd Linux - Networking 10 10-16-2003 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration