Most shells return the exit status in the "$?" variable. -joe On Jun 7, 2005, at 7:52 PM, William Bradshaw wrote: > I am trying to write a script that automatically > decrypts files in a batch mode, and want to know how I > can get status codes returned from the GPG command > line for error trapping. Anyone done this? > > Thanks, Bill