[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

trying to execute gpg in a csh script

Posted on 2006-05-04
5
Medium Priority
?
299 Views
Last Modified: 2013-12-26
when I run this command on the command line
/usr/local/bin/gpg --always-trust -o /pw/data/EC_qual/gentran/vanout/backup/IBMC.0504135259.enc -se -r ecgpdd -u PaulFGreene --passphrase XXXXXXX  --armor /pw/data/EC_qual/gentran/vanout/backup/IBMC.0504135259

the file's encrypted and I get warning message but no prompts which is what I need BUT

when I run this script on the command line

call_gpgencrypt.csh /pw/data/EC_qual/gentran/vanout/backup/IBMC.0504135259 /pw/data/EC_qual/gentran/vanout/backup/IBMC.0504135259.enc

if ($#argv != 2) then
 echo 'two arguments not passed <tempfile> <logfile>'
 exit 1
endif
set ftpdate = `date +%m%d%H%M%S`
set tempfile = $argv[1]
set logfile = $argv[2]
/usr/local/bin/gpg --always-trust -o $logfile -se -r ecgpdd -u PaulFGreene --passphrase xxxxxx  --armor $tempfile
#

 I get
gpg: skipped "PaulFGreene": bad passphrase
gpg: [stdin]: sign+encrypt failed: bad passphrase
what's wrong
0
Comment
Question by:pf_greene724
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
ID: 16609562
does your passphrase contain  something else than [a-zA-Z0-9.,] then you need to escape the characters or quote the string
you also may try using   --passphrase-fd 0
0
 

Author Comment

by:pf_greene724
ID: 16613357
yws I have a # I'll try quotes
0
 

Author Comment

by:pf_greene724
ID: 16629834
that worked
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question