Sponsored Content
Top Forums UNIX for Advanced & Expert Users Syntax when using the 'exec' command Post 302985379 by jlliagre on Tuesday 8th of November 2016 04:58:48 PM
Old 11-08-2016
The simplest approach would be to use ACLs and grant the current user the right to write to the logfile. That would require using an OS and file system that support ACLs though and the syntax will vary depending on the OS and the kind of ACLs supported.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using the -exec command

linux redhat 8.0 I am getting accustomed to using the -exec command to get around my databse.. and use it to edit and update files..! is this more apllicable than jumping from one directory to the other.. I have set up the databse so that the inode #'s are accessable and can get me from one... (0 Replies)
Discussion started by: moxxx68
0 Replies

2. Shell Programming and Scripting

exec command

hai i want know the difference between two shell scripts those are 1) a=2004 echo $a #output------2004 exec < inputfile while read line do echo $a #output-------2004 a=2005 echo $line echo $a ... (1 Reply)
Discussion started by: g_s_r_c
1 Replies

3. UNIX for Dummies Questions & Answers

Need help with -exec cp command.

I have a ksh script that contains the following: find /dir1/dir2 -type f -name "FILE.*" -newer /dir1/dir2/afterme.txt -exec cp /dir1/dir2/dir3 {} \; When I run it from the cli, it runs fine. When I run it from the ksh script I get find: missing argument to `-exec' I also tried -exec cp... (40 Replies)
Discussion started by: bbbngowc
40 Replies

4. Shell Programming and Scripting

exec command

can any one pls explain the meaning of exec 1<&5 ?? its urgent (2 Replies)
Discussion started by: santosh1234
2 Replies

5. Shell Programming and Scripting

exec command help

All, I am using below shell script to output the content to outputfile.txt. What I am looking for is in addition to outputfile.txt, I want the output to be on standard output too. exec > outputfile.txt echo "Starting " echo "ending" (5 Replies)
Discussion started by: basic_shell
5 Replies

6. Shell Programming and Scripting

exec command

How can I use the exec command to log my korn shell session to the screen and the log file? Currently I have this command: $exec 1> ${LOG} 2>&1 This logs the output to the log file only. I want it to go to the screen also. Is this possible with this command? thanks. (10 Replies)
Discussion started by: djehresmann
10 Replies

7. UNIX for Dummies Questions & Answers

Exec command

Hi can some one explain the following command , It would really help if some can really elloborate on what is happening out here export PATH | exec /bin/sh ./auto_approve :q P.S: This is the first time i am using exec ,so an elloboration what does it do and what is the use of the :q will be... (1 Reply)
Discussion started by: Sri3001
1 Replies

8. Shell Programming and Scripting

exec command help

Hi, I have the following lines in a script : . . exec < some_file . . . I have very little idea about exec command. I would like to know what this does and what will happen if the file some_file does not exist. Specifically, I would like to know whether the lines following this... (5 Replies)
Discussion started by: elixir_sinari
5 Replies

9. Shell Programming and Scripting

Exec command - what is it doing here?

Hi all, Forgive me for asking for help with my first post, but I am struggling here. I've been asked to translate a bash script into a Windows script (probably batch or powershell, not sure yet), so the first step is obviously understand what the bash script is doing. But I have no experience in... (5 Replies)
Discussion started by: el_foz
5 Replies

10. Shell Programming and Scripting

Linux find command seems to not transmit all the result to the '-exec command'

Hello. From a script, a command for a test is use : find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc' Tha command... (3 Replies)
Discussion started by: jcdole
3 Replies
dxsetacl(8X)															      dxsetacl(8X)

NAME
dxsetacl - Graphical interface for setting the ACL on a file or directory SYNOPSIS
/usr/bin/X11/dxsetacl [arguments...] OPTIONS
The name of the file or directory to operate on. The regular X resources can be supplied to dxsetacl on the command line. DESCRIPTION
The dxsetacl command provides a graphical interface for examining and setting file access control lists (ACLs). If a path is specified on the command line, the file system object represented by path is used as the target of the command. In addition, there is a Find Object area on the main dialog box. A path may be typed in, or located by browsing the file system. A file reference may be dragged from a CDE application, such as the File Manager, and dropped on the Find Object area. Once an object is selected, its full path name, object type, owner, and group are displayed along with the ACL. The ACL is displayed, one entry per line, in a list widget. Clicking on an entry selects it. Double clicking on an entry or selecting the Change Entry button brings up a dialog that allows the fields of the entry to be modified. Clicking on the Delete Entry button removes the entry. The owning user, owning group, and other user entries may be modified but not deleted. (See acl(4) for more information.) The New Entry button may be used to create a new group or user entry. If the object is a regular file, device special file, or UNIX domain socket, it only has an access ACL. If the object is a directory, it has an access ACL, a default access ACL, and a default directory ACL. Which ACL of a directory is being edited may be selected with a radio button. Note The dxsetacl command will show and set ACLs on file system objects, regardless of whether ACLs are used by the system for access decisions. The sysman secconfig utility is used to enable ACL checking. SEE ALSO
Commands: X(1X), secconfig(8) Files: acl(4) dxsetacl(8X)
All times are GMT -4. The time now is 10:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy