You are here:
ActiveXperts.com > Support > ActiveXperts Network Monitor > Online > Linux > File check
Quicklinks
The following script can be used in ActiveXperts Network Monitor to check files on a remote LINUX machine:
################################################################################# # ActiveXperts Network Monitor - shell script checks # © 1999-2008, ActiveXperts Software B.V. # # For more information about ActiveXperts Network Monitor and SSH, please # visit the online ActiveXperts Network Monitor Shell Script Guidelines at: # http://www.activexperts.com/support/network-monitor/online/linux/ ################################################################################# #!/bin/sh # Validate number of arguments if [ $# -ne 1 ] ; then echo "UNCERTAIN: Invalid number arguments - Usage: file_exists" exit 1 fi # Check if the specified file exists if [ -f "$1" ] ; then echo "SUCCESS: File [$1] exists DATA:1" else echo "ERROR: File [$1] does not exist DATA:0" fi