script returns exit code 0 when No file matching

Advertisement

azmal_g
Joined:
Posts:
3
Location:
Hyderabad,India

script returns exit code 0 when No file matching

Script is in place to ftp the file if the pattern of the file is matched.

When there is no file aswell the script exits with exit code 0

Script: No file matching '*.zip' found.
Script: exit
Script: Exit code: 0
Disconnected from server

Can we the exit code be changed to 1 or any other code if the file is not found.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum