answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you change permissions on a shell script?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you change permissions on a shell script in unix?

Use the 'chmod' command to change permissions on any file. Note: you have to be the owner (or the superuser) to do this.


Can you execute a shell script if you do not have read permission for the file containing the script?

No, the shell needs both execute and read permissions to run the script.


What is the command to execute a shell script?

If the shell script is readable and executable then to execute it just type the name of the shell script file. Otherwise, you can explicity call a shell interpreter to run the file as a shell script, i.e., ksh myfile


Write a shell program to check read and write permissions of a file?

You don't say what you want to do with the permissions, but most shells have a 'test' command that can look at various permissions. Look at the 'man' command for the shell you are running in to see what tests are possible on files and directories. You can check to see if the target is a directory, or a file, and whether it has read, write, or execute/search permissions. Again, it varies by the shell environment.


Write a shell script to show that user is logged in or not?

You don't need a shell script for that; use either 'whoami' or 'id'


Parse log files-shell script?

There are following shell scripts available at the below mentioned url -1. Shell Script for Log4j Log Analysis and exception reporting2. Log Monitoring Shell Script - email upon errorsHope that's what you are looking for.


What is the Purpose of exit command in Shell of Unix?

The 'exit' command allows you to stop a running shell script at any point and to return a "status" value back to whomever called the shell script. This is a very common practice with shell scripts; sometimes you want to stop the script before it gets to the end of the shell script (for various logic reasons). The 'exit' command also allows you to give a status that any other calling process can use to determine if the shell script ended successfully or not.


If a folder has 10 subfolders what is the easiest way to change the permission for all 10 folders?

by changing the permissions of the parent folder or main folder, this will change the permissions of all subfolders.


How do you compile and run shell script of factorial?

Shell scripts are not compiled; they are interpreted (and therefore do not need to be compiled). Just type in the name of the shell script and any parameters it needs to execute.


How do you execute shell program in unix?

Make sure it is readable and executable (permissions). Then, just type in the name of the shell file to execute it.


How do you change file permissions on Yummy FTP?

Select the file you want to change permissions for in the directory listing. Click on the Info icon in the toolbar, or select Get Info from the File menu. Change the permissions in the Info window. You can automatically set permissions when you upload a file. In the Preferences window select Server Options and tick the Set permissions of uploaded files box.


How do you write a shell script which counts the last 10 lines present in a given file?

You don't need a shell script to do this - just use the 'tail' command.