Add this line to the sudoers file (edit with visudo) on each host where smartctl is called:
And in your script, prepend "sudo" to every call to smartctl.
Hi,
To run a perl script i am giving command like this in DOS prompt
d:> perl D:\<dir_name>\<dir_name>\sample.pl
Its throwing the following error while running the above
syntax error at <eval 4> line 1, near "use D:"
Can anyone help? (3 Replies)
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Hi All,
Need help configuring Active Perl on Windows Vista.
I am trying to install Active Perl on Windows Vista.
The version of Active Perl i am trying to install is : ActivePerl 5.10.1 Build 1006
After installing it through cmd, When i try to run perl -v to check the version, i get the... (2 Replies)
Hi all,
I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first.
Can you please help me determine which one to... (14 Replies)
Gents,
I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
I have create this shell script
#!/bin/sh
if ; then
echo "Usage: ./script <filename>"
exit 1
elif ; then
fname="$1"
fi
output="output.txt"
i=0 ... (11 Replies)
Discussion started by: Evelin90
11 Replies
LEARN ABOUT DEBIAN
setuidgid
setuidgid(8) System Manager's Manual setuidgid(8)NAME
setuidgid - runs another program under a specified account's uid and gid.
SYNOPSIS
setuidgid account child
DESCRIPTION
account is a single argument. child consists of one or more arguments.
setuidgid sets its uid and gid to account's uid and gid, removing all supplementary groups. It then runs child.
setuidgid cannot be run by anyone other than root.
EXIT CODES
setuidgid exits 111 if it cannot find a UNIX account named account, if it cannot setgid, if it cannot setuid, or if it cannot run child.
Otherwise its exit code is the same as that of child.
SEE ALSO supervise(8), svc(8), svok(8), svstat(8), svscanboot(8), svscan(8), readproctitle(8), fghack(8), pgrphack(8), multilog(8), tai64n(8),
tai64nlocal(8), envuidgid(8), envdir(8), softlimit(8), setlock(8)
http://cr.yp.to/daemontools.html
setuidgid(8)