- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Alternative Ping Program Help.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2016 01:06 AM
08-13-2016 01:06 AM
Alternative Ping Program Help.
Ok so basically I need help making a program in batch that will have the results like this
Enter IP Here: ipputhere
and then will go on to ping -t ip
so basically just to make it look neater/nicer is what im looking for. Can anyone help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2016 06:08 PM
08-13-2016 06:08 PM
Re: Alternative Ping Program Help.
> [...] a program in batch [...]
Define "a program in batch"? Are you trying to write a shell script?
If so, how much don't you know about writing a shell script?
> Enter IP Here: ipputhere
In "batch" mode, who will be (interactively?) providing the IP
address?
> so basically just to make it look neater/nicer is what im looking for.
Define "neater/nicer"? Do you want something different to happen in
the case when "ping" fails, compared to what happens when "ping"
succeeds? (What, exactly?)
> Can anyone help me?
Lacking a clear description of what you want, I can't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2016 11:23 PM
08-14-2016 11:23 PM
Re: Alternative Ping Program Help.
Not sure what you want to do.
Something like fping or pathping?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2016 07:46 AM
08-16-2016 07:46 AM
Re: Alternative Ping Program Help.
i have to agree with everyone else -- you're not explaining yourself well.
it's very rare for a real batch script to expect human input. It is, however, quite common in "regular" (not batch) scripts.
if you're wondering how to do user input -- check this writing shell scripts page.
this page even goes further!
i know the above examples are for linux....but it seem that it will be a worthwhile excerise for you to adapt them to hpux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2016 03:10 AM
08-19-2016 03:10 AM
Re: Alternative Ping Program Help.
Also what do you mean by 'ping -t IP' ?
Do you mean like -t windows option or -t linux option?
Give an explicit example of what you want.
the equv to XP ping -t is ping with no option
-t is for ttl option
or do you look for something like
#!/usr/bin/ksh
echo what ip?
read ip
ping $ip -n 1 -m 1
or
#!/usr/bin/ksh
echo what ip?
read ip
ping $ip -n 1 -m 1 -n 1 -m 1 >/dev/null && echo there || echo nothere