Sponsored Content
Full Discussion: help please
Top Forums Shell Programming and Scripting help please Post 13310 by ruffenator on Tuesday 15th of January 2002 03:48:18 PM
Old 01-15-2002
help please

hi ya just needed some help to validate this badboy
what i need is that the user enters a directory then it'll change to that and then print the directory. if not a valid directory the user is aksed whether they want another go, if yes they have another go, if not they menu programme reruns again. please help me !
ta


"3")
42
43 clear
44
45 print "this will change your current working directory"
46
47 print "please enter a directory to change to"
48
49 read dir junk
50
51 if test -d $dir
52
53 then
54
55 clear
56
57 echo "The directory $dir does exist"
58
59 echo "I will now change to that directory"
60
61 cd $dir
62
print -n "You are now in the" "directory :"
64
65 pwd
66
67 echo "Please push enter to continue"
68
69 read
70
71 /home/bf01/bf01iaru/projcp/proj/
72
73 else
74
75 if test -f $dir
76
77 then
78
79 clear
80
81 echo "$dir is a file not a directory"
82
83 else
84
85 clear

87 echo "$dir does not exist"
88
89 echo "Please try again"
90
91 sleep 3
92
93 /home/bf01/bf01iaru/projcp/proj
94
95 fi
96
97 fi
98
99 ;;
100
 
GLOBUS-UPDATE-CERT(8)					      GSI-C OpenSSL Commands					     GLOBUS-UPDATE-CERT(8)

NAME
globus-update-certificate-dir - Update symlinks in the trusted CA directory SYNOPSIS
globus-update-certificate-dir [-help] [-d DIRECTORY] DESCRIPTION
The globus-update-certificate-dir program creates symlinks between files (CA certificates, certificate revocation lists, signing policy, and certificate request configuration files) using the certificate hash the installed version of OpenSSL uses. OpenSSL 1.0.0 uses a different name hashing algorithm than previous versions, so CA distributions created with older versions of OpenSSL might not be able to locate trusted CAs and related files. Running globus-update-certificate-dir against a trusted CA directory will add symlinks to the files to the hash if needed. The full set of command-line options to globus-update-certificate-dir consists of: -help Display a help message to standard output and exit -d DIRECTORY Create links in the trusted CA directory DIRECTORY instead of using the default search path. ENVIRONMENT
If the following variables affect the execution of globus-update-certificate-dir X509_CERT_DIR Default trusted certificate directory. HOME Path to the current user's home directory. GLOBUS_LOCATION Path to the Globus installation. University of Chicago 02/18/2010 GLOBUS-UPDATE-CERT(8)
All times are GMT -4. The time now is 11:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy