hi guys,
I have a requirement to run a script 4 times with different parameter values.
the 4 jobs have to run parallely which actually access different data of same table and deletes.
how can i achieve this.................?
Thanks in advance (1 Reply)
Hi
I have a doubt in the way the variables inside a function are treated .
if a function is called from the main script directly, the variables inside them act as global variables.
however if the return value of the function is stored to some other variable in the main script as shown,... (3 Replies)
Hi All,
Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'.
I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode'... (0 Replies)
I have a class called Parsing with the following function. I want to create a wrapper for it, so that I call it using GetReal rather than GetFloat.
Bit confused on how to do this.
class Parsing {
private:
int Length; //
int Ptr; ... (3 Replies)
I'm not that acquainted to C programming and would like to know how to obtain the internal Unix userid of a user (I'm on HP UX) and stro it in a variable.
I found the getuid() fonction returns the current user's internal ID. But I would like to find it for a different user. I was hoping... (7 Replies)
Not sure where the problem is. I can run the script without any issue using the following command.
. /opt/app/scripts/cdc_migration.sh
But it fails with the below error when I try it this way
/opt/app/scripts/cdc_migration.sh
/opt/app/scripts/cdc_migration.sh: line 65: return: can only... (1 Reply)
Here is the first draft PHP function to check badges:
<?php
function check_badges($color, $uid, $limit = 300, $_DEBUG = true)
{
/*
* check_badges() version 0.1 by Neo 9 Jan 2019
* $_COOKIE is not used in this server-side code
* but may be used in the browser. ... (0 Replies)
Hi All,
Good Day, seeking for your assistance on how to not perform my 2nd, 3rd,4th etc.. function if my 1st function is in else condition.
#Body
function1()
{
if
then
echo "exist"
else
echo "not exist"
}
#if not exist in function1 my all other function will not proceed.... (4 Replies)
Discussion started by: meister29
4 Replies
LEARN ABOUT ULTRIX
setgid
setuid(3) Library Functions Manual setuid(3)Name
setuid, seteuid, setruid, setgid, setegid, setrgid - set user and group ID
Syntax
#include <sys/types.h>
#include <unistd.h>
setuid(uid)
uid_t uid;
seteuid(euid)
uid_t euid;
setruid(ruid)
uid_t ruid;
setgid(gid)
gid_t gid;
setegid(egid)
gid_t egid;
setrgid(rgid)
gid_t rgid;
Description
The subroutine sets both the real and effective user ID of the current process to the ID specified. Likewise, the subroutine sets the real
and effective group ID of the current process to the ID specified.
The subroutine sets the effective user ID of the current process, while the subroutine sets the effective group ID of the current process.
The subroutine sets the real user ID of the current process, while the subroutine sets the real group ID of the current process.
These calls are only permitted to the super-user or if the argument is the real or effective ID.
Environment
POSIX
SYSTEM_FIVE
When your program is compiled in POSIX or System V mode the following semantics apply when using the or functions:
If the process is the super-user the real, effective, and saved set (as described in user/group ID are set to uid.
If the process is not the super-user, but uid is equal to the real or the saved set user/group ID, the effective user/group ID is set to
uid. The real and saved set user/group ID remain unchanged.
POSIX
In POSIX mode, the function returns a value of type uid_t. The function returns a value of type gid_t.
Return Values
Zero is returned if the user ID or group ID is set; -1 is returned otherwise.
See Alsosetreuid(2), setregid(2), getuid(2), getgid(2)setuid(3)