Sponsored Content
Full Discussion: scripts for dummies
Top Forums UNIX for Dummies Questions & Answers scripts for dummies Post 3412 by kapilv on Sunday 1st of July 2001 08:04:01 AM
Old 07-01-2001
Hi

The file permissions that ls -l shows up does not have executable permissions for the user i.e you i.e davidlee. So you need to set the executable permissions for the script file (myscript). to do this give chmod u+x myscript
the ls -l myscript will then show
-rwx-r--r-x
i.e you now have the executable rights and now you can run myscript by typing just the filename.
Hope this works.


 

8 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Unix for Dummies FAQ

I have created a small FAQ for the "Unix for Dummies" forum. Hopefully this will be useful, as there are questions which are asked (and answered) repeatedly. <A HREF="http://www.droflet.net/unix_dot_com_faq.html">http://www.droflet.net/unix_dot_com_faq.html (0 Replies)
Discussion started by: PxT
0 Replies

2. Shell Programming and Scripting

Perl for Dummies

Hi all. iam new to this and i want to learn perl Any good website out there ?? anything will do thanks :( (1 Reply)
Discussion started by: perleo
1 Replies

3. News, Links, Events and Announcements

UNIX for Dummies Test

A goofy UNIX test: http://www.majon.com/cgi-bin/IQ?Q=unix WARNING: ANSWERS ARE BELOW!!!! IF YOU WANT TO DO THE TEST BEFORE SEEING THE ANSWERS, DON"T READ FURTHER ;) (13 Replies)
Discussion started by: Neo
13 Replies

4. Solaris

Solaris for dummies

Is there one command that will display all system information on a Solaris host running Solaris 8? System information such as model, memory, CPU, disk space etc. etc. (2 Replies)
Discussion started by: mita
2 Replies

5. UNIX for Dummies Questions & Answers

I am real Dummies , I am Questions

I want to know data about 1. Overview 2. Process Management 3. Memory Management 4. File System Management 5. Secondary Storage Management 6. Protection and Security Systems of UNIX OS Thank Alot. (1 Reply)
Discussion started by: coolmara04
1 Replies

6. UNIX for Dummies Questions & Answers

dummies question

Please help to answer some highlighted question below. 1. How to create more than 1 partition in a single hard disk? 2. How to format the created partition to be viewable like in windows C: or D: ? 3. How to use pen drive in unix environment? 4. How to find a file starting with... (8 Replies)
Discussion started by: jimmyysk
8 Replies

7. UNIX for Dummies Questions & Answers

I know this is probably top of the Dummies questions!

Hello: I am a very new Newbie. This is not a homework question. The assignment question was actually on the use of the 2 different inputs 'read' and 'cat' ... that I know and turned in an hour ago. I don't need help with that. My question, like I said, probably sounds really dumb to most of... (4 Replies)
Discussion started by: ZaraJC
4 Replies

8. Programming

C++ for dummies: how to compile a code.

Hi. I wrote a small programm which shows me display's refresh rate #include "stdafx.h" #include "windows.h" #include "iostream" using namespace std; int _tmain(int cout) { HDC hDCScreen = GetDC(NULL); int RefreshFrequency = GetDeviceCaps(hDCScreen, VREFRESH); ReleaseDC(NULL, hDCScreen);... (1 Reply)
Discussion started by: urello
1 Replies
CHMOD(1)						      General Commands Manual							  CHMOD(1)

NAME
chmod - change access mode for files SYNOPSIS
chmod [-R] mode file ... OPTIONS
-R Change hierarchies recursively EXAMPLES
chmod 755 file # Owner: rwx Group: r-x Others: r-x chmod +x file1 file2 # Make file1 and file2 executable chmod a-w file # Make file read only chmod u+s file # Turn on SETUID for file chmod -R o+w dir # Allow writing for all files in dir DESCRIPTION
The given mode is applied to each file in the file list. If the -R flag is present, the files in a directory will be changed as well. The mode can be either absolute or symbolic. Absolute modes are given as an octal number that represents the new file mode. The mode bits are defined as follows: 4000 Set effective user id on execution to file's owner id 2000 Set effective group id on execution to file's group id 0400 file is readable by the owner of the file 0200 writeable by owner 0100 executable by owner 0070 same as above, for other users in the same group 0007 same as above, for all other users Symbolic modes modify the current file mode in a specified way. The form is: [who] op permissions { op permissions ...} {, [who] op ... } The possibilities for who are u, g, o, and a, standing for user, group, other and all, respectively. If who is omitted, a is assumed, but the current umask is used. The op can be +, -, or =; + turns on the given permissions, - turns them off; = sets the permissions exclu- sively for the given who. For example g=x sets the group permissions to --x. The possible permissions are r, w, x; which stand for read, write, and execute; s turns on the set effective user/group id bits. s only makes sense with u and g; o+s is harmless. SEE ALSO
ls(1), chmod(2). CHMOD(1)
All times are GMT -4. The time now is 03:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy