On Wed, 2004-03-03 at 12:05, Burns, John wrote:
> How would I write a simple ping command using CFEXECUTE on CFMX for
> linux?
just like windows
ping [ipaddress]

> I'm not sure what the name attribute should hold.  I know on windows
> it'd be the path to ping.exe and the arguments would be the ipaddress,
> etc.  If anyone can give an example of linux that'd be great.
The full command on debian is
$ /bin/ping -c 1 192.168.1.200

but I'd write a wrapper script for cfexecute (as i have said many times
:-o) so something like

+=== myping.sh ====+
#!/bin/sh

# the c is for count btw
/bin/ping -c 1 $1
+===============+

chmod u+x myping.sh

and cfexcute should be path to myping.sh and argument of an ip address

>  
> John Burns
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to