Sponsored Content
Homework and Emergencies Homework & Coursework Questions changing permissions of a file whos name was passed to 755 Post 302398728 by anix007 on Thursday 25th of February 2010 11:43:23 AM
Old 02-25-2010
Thank you so much, I was just making it harder on myself- I never set variables, so it was coming out terribly messy. I can take it from here- thank you for shining a light for me! I'm a newbie.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

changing file permissions

Use the following to Change permission of fileB (fileB could be fileB*) to change its permission same as the permission of fileA. chmod `ls -l fileA | awk '{pr int "u+", substr($1,2,1), substr($1,3,1), substr($1,4,1), ",g+", substr($1,5,1), substr($1,6,1), substr($1,7,1), ",o+",... (0 Replies)
Discussion started by: gagansharma
0 Replies

2. Shell Programming and Scripting

Changing Permissions

Is it possible to change the permissons for an entire directory in one shot? I'm telneting on to a linux server. ...just a beginner-- --Paul (4 Replies)
Discussion started by: pdavid
4 Replies

3. UNIX for Advanced & Expert Users

Changing file permissions on upload

Hello ! When I connect to a RH FTP server, the files I transfer (from my "windows computer") to this server have the following permissions : -rw------- but I would like those files to have the following permissions : - rw-rw-r-x How can I do that ??? :) Thanks for your help ! G. (6 Replies)
Discussion started by: guix
6 Replies

4. UNIX for Dummies Questions & Answers

changing default file permissions

How can I change the default permissions that are assigned when I create a file? (By default the file has: -rw-r--r-- ..... I'd like it to be -rw-r----- How can I change this default behavior? (8 Replies)
Discussion started by: FredSmith
8 Replies

5. UNIX for Dummies Questions & Answers

Changing file permissions

Is there a way to change a unix user's default file permissions so that when he creates a file, by default permissions are 777??? Thanks! (7 Replies)
Discussion started by: FredSmith
7 Replies

6. UNIX for Dummies Questions & Answers

changing permissions on a 444 file (ie chmod 444)

if I have a file set to permisions 444 (r-- r-- r--) should anyone other than the owner and root be able to change these permissions or delete the file. Apologies if this is a no-brainer but I cant test it myself and someone in our organisation is playin around with files they shouldnt be (1 Reply)
Discussion started by: ajcannon
1 Replies

7. Cybersecurity

changing /cn@0:console file permissions

I'm doing a security sweep of a Sun Sol 5.8 system. The file: /dev/console, which links to /devices/pseudo/cn@0:console, has the following perms: crw--w--w- I would like to get rid of the world write permissions. I can change the file permissions, but as soon as log back in, they are changed... (4 Replies)
Discussion started by: ErnieG
4 Replies

8. Shell Programming and Scripting

HELP changing file permissions

does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it. Display current users. Display user Ids only. Display... (10 Replies)
Discussion started by: live2learn
10 Replies

9. Homework & Coursework Questions

changing permissions of a file whos name was passed to 755

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell script that gives a passed file the "755" access permissions. The shell script should: Change... (0 Replies)
Discussion started by: anix007
0 Replies

10. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies
SoDirectionalLight(3)						       Coin						     SoDirectionalLight(3)

NAME
SoDirectionalLight - The SoDirectionalLight class is a node type for specifying directional light sources. A directional light source provides a model of light sources which are at infinite distance from the geometry it illuminates, thereby having no set position and consisting of an infinite volume of parallel rays. SYNOPSIS
#include <Inventor/nodes/SoDirectionalLight.h> Inherits SoLight. Inherited by SoDirectionalLightManip. Public Member Functions virtual SoType getTypeId (void) const SoDirectionalLight (void) virtual void GLRender (SoGLRenderAction *action) Static Public Member Functions static SoType getClassTypeId (void) static void initClass (void) Public Attributes SoSFVec3f direction Protected Member Functions virtual const SoFieldData * getFieldData (void) const virtual ~SoDirectionalLight () Static Protected Member Functions static const SoFieldData ** getFieldDataPtr (void) Detailed Description The SoDirectionalLight class is a node type for specifying directional light sources. A directional light source provides a model of light sources which are at infinite distance from the geometry it illuminates, thereby having no set position and consisting of an infinite volume of parallel rays. This is of course a simplified model of far-away light sources, as 'infinite distance' is impossible. The sun shining on objects on earth is a good example of something which can be modeled rather well for the most common purposes with a directional light source. See also documentation of parent class for important information regarding light sources in general. FILE FORMAT/DEFAULTS: DirectionalLight { on TRUE intensity 1 color 1 1 1 direction 0 0 -1 } A common thing to do with an SoDirectionalLight is to connect it to a camera, so it works in the style of a head light to that camera. This can easily be accomplished by linking an SoRotation::rotation field, influencing the light, to the SoCamera::orientation field. Here is a complete example iv-file demonstrating the technique: #Inventor V2.1 ascii DEF mycam PerspectiveCamera { } TransformSeparator { SoRotation { rotation = USE mycam.orientation } DirectionalLight { direction 0 0 -1 } } Cube { }.fi (The SoTransformSeparator is included to keep the effect of the SoRotation node within a scope where it will only influence the light, and not the geometry following the light in the scene graph.) Constructor &; Destructor Documentation SoDirectionalLight::SoDirectionalLight (void) Constructor. SoDirectionalLight::~SoDirectionalLight () [protected], [virtual] Destructor. Member Function Documentation SoType SoDirectionalLight::getClassTypeId (void) [static] This static method returns the SoType object associated with objects of this class. Reimplemented from SoLight. Reimplemented in SoDirectionalLightManip. SoType SoDirectionalLight::getTypeId (void) const [virtual] Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting. Usage example: void foo(SoNode * node) { if (node->getTypeId() == SoFile::getClassTypeId()) { SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type } } For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on. For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups. Reimplemented from SoLight. Reimplemented in SoDirectionalLightManip. const SoFieldData ** SoDirectionalLight::getFieldDataPtr (void) [static], [protected] This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. Reimplemented from SoLight. Reimplemented in SoDirectionalLightManip. const SoFieldData * SoDirectionalLight::getFieldData (void) const [protected], [virtual] Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL. Reimplemented from SoLight. Reimplemented in SoDirectionalLightManip. void SoDirectionalLight::initClass (void) [static] Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoLight. Reimplemented in SoDirectionalLightManip. void SoDirectionalLight::GLRender (SoGLRenderAction *action) [virtual] Action method for the SoGLRenderAction. This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method. Reimplemented from SoNode. Reimplemented in SoDirectionalLightManip. Member Data Documentation SoSFVec3f SoDirectionalLight::direction The direction of the light source. Defaults to pointing along the negative z-axis. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SoDirectionalLight(3)
All times are GMT -4. The time now is 01:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy