LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2005, 06:21 AM   #1
ratul_11
LQ Newbie
 
Registered: Dec 2005
Posts: 29

Rep: Reputation: 15
set-up of application in freeBSD and linux environment.


hi guys this is anirban & I am new to linux.I have a doubt on a particular shell programming.The question is
how can i write a shell program that will check the server is up or not (using ping)and log the report to a file.
hope i shall receive my answer soon.

with regards
Anirban.

Last edited by ratul_11; 12-14-2005 at 01:07 AM.
 
Old 12-05-2005, 08:55 AM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
I'm thinking that it would depend what the application is, whether you want to set it up under linux or freeBSD (or both ?), whether the same application is available for both OS, and maybe some info about which distro(s) you are using - so someone might be able to assist.

Your question is of rather a "general" nature i.e. there could be many, many answers to what you're asking.

regards

John
 
Old 12-14-2005, 01:09 AM   #3
ratul_11
LQ Newbie
 
Registered: Dec 2005
Posts: 29

Original Poster
Rep: Reputation: 15
hi guys this is anirban & I am new to linux.I have a doubt on a particular shell programming.The question is
how can i write a shell program that will check the server is up or not (using ping)and log the report to a file.
hope i shall receive my answer soon.

with regards
Anirban.
 
Old 12-14-2005, 11:06 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The preferred way to write a shell program is to use
a text-editor, save the file and then chmod u+x it ....



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
set cronjob environment donhare Linux - Software 0 01-31-2005 06:51 AM
how to set environment variable pranith Linux - Newbie 1 01-27-2005 11:23 PM
set environment variable Jongi Linux - Newbie 7 03-01-2004 04:34 AM
Set Environment Variable lloyd_stevens Linux - Software 1 07-30-2003 12:38 PM
how to set CC environment variable mr.moto General 2 12-18-2001 01:02 AM


All times are GMT -5. The time now is 06:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration