Saturday, October 19, 2019
CIS206 Review Assignment Essay Example | Topics and Well Written Essays - 250 words
CIS206 Review Assignment - Essay Example 2. What are two ways you can execute a shell script when you do not have execute permission for the file containing the script? Can you execute a shell script if you do not have read permission for the file containing the script? There is need to pass the name of the file that has the script as an argument to that shell. For instance, bash scriptfile in which case, the scriptfile is the name of that file contain the script. When working with bash the following commands are applicable. First, there is scriptfile. Then there is source scriptfile. You cannot execute a shell script in case you do not have permission for reading the file that contains the script. The cause of this is the need to read the commands that are in the file by the shell. The resultant working directory will be biblios i.e. /home/zach/grants/biblios. When the command pwd is, it shows the path to the current working directory (Soyinka, 2012). c will only locate the directory in use when it uses CDPATH to search the directories indicated. The latter happens only when you do not specify the current directory in the CDPATH, but the CDPATH
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.