03-18-2010
how to make some condition when program/tool unsuccesfully ends with error..
Simply, when i have tool "pdftotext", "sed" or "wget" and if this tool make an error in converting or downloading or something, I want to terminate my script...something like:
if [ pdftotext throws error/exception ]; then
exit 1
fi
bud I dont know how..can you help guys?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
whitout using awk / sad and so on? (3 Replies)
Discussion started by: umen
3 Replies
2. AIX
Hi,
Does anyone has installed bb on a unix system ? I am trying to install bb on aix 5.3 but I have the following message: If someone can help me probably there is a tool that I need to install ? I don't have C compiler I install gcc instead and gcc++ etc ...
bb:/home/bb/bb1.9g-btf/src/ $ make... (0 Replies)
Discussion started by: touny
0 Replies
3. Programming
Hi, so far i am writting make file explicitly, is there is any tool is there to write make file automatically....if so please tell me about that...
Thanks in advance
Sarwan (4 Replies)
Discussion started by: sarwan
4 Replies
4. Linux
Hi All,
I am very curious to know that how to make a product/tool as evalution copy(trail version for 30days).
I want to know this implemention process in linux(the tool is in Linux).
If anybody have any scripts/articles/ideas please pass them to me.
Please help me.
Thanks in Advace,... (0 Replies)
Discussion started by: uday123
0 Replies
5. Shell Programming and Scripting
Hi all, i hope i got this in the right place, what i am trying to do is make a program only run by root, ie
for instance user fred is logged in and uses firefox, what id like to do is change that so that when fred wants to use firefox he will be asked to enter root password before he is allowed to... (14 Replies)
Discussion started by: dave123
14 Replies
6. UNIX for Dummies Questions & Answers
In unix how we can test or check race condition in any c program by using multi thread programming (1 Reply)
Discussion started by: afroze
1 Replies
7. Programming
In unix how we can test or check race condition in any c program by using multi thread programming (5 Replies)
Discussion started by: afroze
5 Replies
8. Programming
Hi,
I'm trying to create a C program that functions like the make utility in UNIX for personal use. My program would read in from a generic makefile and execute whatever is in that makefile but I'm not sure as to where I should start coding.
I would appreciate any help.
Thanks. (1 Reply)
Discussion started by: kratos.
1 Replies
9. Solaris
I attached a README file that I will refer to.
I successfully completed everything in the README file until step 4.
# pwd
/gani/gani-2.4.4
# ls
COPYING Makefile.macros gem.c
Makefile Makefile.sparc_gcc gem.h
Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies
10. Shell Programming and Scripting
Hi,
I am writing a menu driven program using shell script. THe script will be collecting data by logging into the other servers and bringing back the data to home server to process it and accordingly issue commands. TO automate commands execution , I am using expect script. However I am not able... (5 Replies)
Discussion started by: ashima jain
5 Replies
LEARN ABOUT SUSE
beid-pkcs11-tool
beid-pkcs11-tool(1) Belgium beid-pkcs11-tool(1)
NAME
beid-pkcs11-tool - generic smart card utility
SYNOPSIS
beid-pkcs11-tool [OPTIONS]
DESCRIPTION
The beid-pkcs11-tool utility can be used from the command line to perform miscellaneous operations on the Belgium eID PKCS11 library, such
as changing your PIN or testing the library.
OPTIONS
--show-info, -I
Show global token information
--list-slots, -L
List the available slots
--list-mechanisms, -M
List the mechanisms supported by the token
--list-objects, -O
List the objects on the token
--login, -l
Log into the token first (not needed when using --pin)
--pin pin, -r pin
Supply the PIN on the command line
--change-pin, -c
Change the PIN
--slot slot
Specify number of the slot to use
--module module
Specify PKCS11 library to use (default = libbeidpkcs11.so)
--test, -t
Test (best used with the --login or --pin option)
SEE ALSO
beid-tool(1)
AUTHORS
beid-pkcs11-tool is based on pkcs11-tool (www.openc.org) and adapted for the Belgian national eID card by Zetes NV/SA (www.zetes.com).
09/2005 beid-pkcs11-tool(1)