04-09-2014
thanks for the reply but the script another_script.sh has permission 640 and i don't have privileges to change them. I've already tried giving the full path, since no one has execute permission it errors out.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am trying to execute the below shell script: script name(ss1).
ss1 was given permission - 744 before executing.
name: ss1
#ss1
#usage:ss1
ls
who
pwd
:wq
I tried to execute $ss1 (Enter)
Its not executing.... It says that ss1 is not found:
echo $SHELL. The o/put i got is... (5 Replies)
Discussion started by: dreams5617
5 Replies
2. Shell Programming and Scripting
Hi All,
I have a script to be executed in another machine. I connect to that machine from another server as a root ( this is the only configured access, as i cannot log in as a normal user). After that I have to switch to a normal user and that I can be able to executge that script. But all this... (12 Replies)
Discussion started by: elthox
12 Replies
3. Shell Programming and Scripting
ssh user@machine awk '{ split ($1,ar,"!");print ar}' samp >samp1
Error:
Unmatched '.
However on <machine> awk '{ split ($1,ar,"!");print ar}' samp >samp1
executes successfully.
Any suggestions. (1 Reply)
Discussion started by: bishweshwar
1 Replies
4. HP-UX
1)MY HP-UX11iv2 machine is on a specific subnet as in rrr.rr.199.( its a rp3410 blade server).It has 2 hard disks one of them has HP-UX11iv2 and the other hard disk is not being used
2)ip of the hp-ux machine is rrr.rr.199.rrr
3)i need to access this hp-ux machine remotely from a windows machine... (3 Replies)
Discussion started by: rookie8278
3 Replies
5. Shell Programming and Scripting
Hi,
in the below command, i export a value to a variable which later is used by the script, however i dont see the exported value is actually been exported.
ssh user@host "export var=/path/ ; cd /path/ ; ./script"
how can i use the above command with proper value of var remotley (7 Replies)
Discussion started by: suraj.sheikh
7 Replies
6. Homework & Coursework Questions
Hi, I'm a complete novice to Linux and UNIX. I'm having trouble getting a script to execute properly. I did a similar script earlier in the semester with no problems. For whatever reason I can't get this one to work. Any help would be greatly appreciated as I'm completely lost and frustrated at... (5 Replies)
Discussion started by: Lindy70
5 Replies
7. Solaris
how to execute shell script present in unix machine remotely from windows?
I having a shell script in my unix machine, need to execute the script remotely from my windows machine using Visual Basic or VBA macros.
Thanks In Advance.
--Suresh (1 Reply)
Discussion started by: sureshmani
1 Replies
8. Shell Programming and Scripting
Platform : Solaris 10, RHEL 5.4, OEL 6
I've noticed that some of my colleagues execute scripts by typing sh before the script name
sh myscript.shI always execute a script by typing the script name and typing enter provided PATH variable has . (current directory) in it
myscript.sh (and... (1 Reply)
Discussion started by: John K
1 Replies
9. Shell Programming and Scripting
Hi,
I am looking for a way to copy the directory on a remote machine that's present on the same remote machine.
ex. I have multiple directories on a remote machine "B" created as
/abc/LOG_1004
/abc/LOG_1008
/abc/LOG_1012
The script should be able to create a copy of the latest dirs... (1 Reply)
Discussion started by: deo_kaustubh
1 Replies
10. UNIX for Beginners Questions & Answers
I am new to Unix shell and to this forum.
I am having some trouble executing an interactive shell script that I have written using Mac TextEdit that takes a user input via terminal of a file type (jpg or gif) and then activates a script that will iterate through a folder of unsorted file types... (4 Replies)
Discussion started by: Braveheart
4 Replies
fdetach(3C) fdetach(3C)
NAME
fdetach() - detach a name from a STREAMS file descriptor
SYNOPSIS
DESCRIPTION
The function detaches a file descriptor from a name in the file system designated by path. path specifies the path name of an existing
object in the file system name space that was previously attached (see fattach(3C)). As a result of the operation, the node's status and
permissions return to the state prior to the file attaching to the node. Any later operations on path will affect only the file system
node and not the attached file.
Security Restrictions
The function is restricted to superusers, or users with the privilege, or those who own path and have write permission. In addition to
having the privilege, or privileges may also be required. See privileges(5) for more information about privileged access on systems that
support fine-grained privileges.
RETURN VALUE
Upon successful completion, the function returns a value of 0 (zero). Otherwise, it returns a value of -1 is returned, and is set to indi-
cate the error.
ERRORS
If any of the following conditions occurs, the function sets to the value that corresponds to the condition.
The path parameter points outside the process' allocated address space.
The user does not have the correct permission to access the file.
See the section.
The object pointed to by the
path parameter is not fattached to a STREAMS device or pipe.
When path was translated, too many symbolic links were found.
The path parameter points to a path name that does not exist.
The directory portion of the
path parameter does not exist.
The size of a path name component is longer than
when is in effect, or the path name length is longer than
The current effective user ID is not the owner of the existing object
specified by the path parameter, or the current effective user ID does not specify a user with the correct permis-
sions.
SEE ALSO
fdetach(1M), umount(2), fattach(3C), isastream(3C), privileges(5), streamio(7).
STANDARDS CONFORMANCE
fdetach(3C)