Hi,
I have used exec ("/bin/ksh -c /path/file.ksh arg1"); to execute the file.ksh script from a test.pl script. But it doesnt work.. can anyone tell me what exactly the systax should be?... i have tried system("/path/file.ksh arg1"); too....still no luck...
quick replies are highly appreciated (1 Reply)
Hi all,
I am beginner in UNIX...I want to use unix shell script to create text.file...I know how to use using by command...can anybody tell me for the script?
Thanks
i changed the threads title from "tex file" to "text file", because "tex" would probably be misunderstood as reference to... (4 Replies)
i want use ssh on the host01 to execute autoexec.sh on the host02 like following :
host01> ssh host02 autoexec.sh
autoexec.sh include nohup command like follwing :
nohup /home/jack/deletedata.sh &
after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Hi all,
I'm not sure if it is correct to post here.
I am facing problem wanting to create a batch that run from my Windows XP pc to remote to multiple Solaris server to execute the server's ksh script. :wall:
Can anyone give me a hints on how to do that? Thanks. (6 Replies)
Hi Unix Experts,Team
I have a file (say comand_file.prm), The file has a command specified in column 6 (say "./execute_script.sh"). I want to execute this command in my script.
I am writing a KSH script to achieve this. Could you please assist me with this. (6 Replies)
please help me to execute a simple shell script like
for i in `ls
echo $i
done
. i dont want to create a new sh file to execute it. Can i just type and execute it ? because I always this kind of simple for loops .
Please help .
Thanks (7 Replies)
Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh.
Thanks in advance (2 Replies)
Hi team,
My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server.
I have completed the first part i.e From windows to using to unix server with the help of psftp.exe
code:
psftp user@host -pw password <... (1 Reply)
Hello, Im trying to write a ksh script that will enter the universe environment as user kourier (switching to this specific user automatically launches to the TCL prompt). At the TCL " > " prompt i want to execute two variables. However, it wont recognize the second variable (user input Answer) due... (6 Replies)
I need to run a shell script on unix machine from windows 7.
I used the "RSH" command in win XP successfully for this, But on win 7 it is not working.
Can any body tell me how to run RSH on win 7 or any other command for similar use.
I use the command as below
rsh <unix m/c> -l <username>... (1 Reply)
Discussion started by: arup1980
1 Replies
LEARN ABOUT NETBSD
kcpuset_create
KCPUSET(9) BSD Kernel Developer's Manual KCPUSET(9)NAME
kcpuset, kcpuset_create, kcpuset_destroy, kcpuset_copy, kcpuset_use, kcpuset_unuse, kcpuset_copyin, kcpuset_copyout, kcpuset_zero,
kcpuset_fill, kcpuset_set, kcpuset_clear, kcpuset_isset, kcpuset_iszero, kcpuset_match, kcpuset_merge, kcpuset_atomic_set,
kcpuset_atomic_clear -- dynamic kernel CPU sets
SYNOPSIS
#include <sys/kcpuset.h>
void
kcpuset_create(kcpuset_t **retkcp, bool zero);
void
kcpuset_destroy(kcpuset_t *kcp);
void
kcpuset_copy(kcpuset_t *dkcp, kcpuset_t *skcp);
void
kcpuset_use(kcpuset_t *kcp);
void
kcpuset_unuse(kcpuset_t *kcp, kcpuset_t **lst);
int
kcpuset_copyin(const cpuset_t *ucp, kcpuset_t *kcp, size_t len);
int
kcpuset_copyout(kcpuset_t *kcp, cpuset_t *ucp, size_t len);
void
kcpuset_zero(kcpuset_t *kcp);
void
kcpuset_fill(kcpuset_t *kcp);
void
kcpuset_set(kcpuset_t *kcp, cpuid_t cpu);
void
kcpuset_clear(kcpuset_t *kcp, cpuid_t cpu);
int
kcpuset_isset(kcpuset_t * kcp, cpuid_t cpu);
bool
kcpuset_iszero(kcpuset_t *kcp);
bool
kcpuset_match(const kcpuset_t *kcp1, const kcpuset_t *kcp2);
void
kcpuset_merge(kcpuset_t *kcp1, kcpuset_t *kcp2);
void
kcpuset_atomic_set(kcpuset_t *kcp, cpuid_t cpu);
void
kcpuset_atomic_clear(kcpuset_t *kcp, cpuid_t cpu);
DESCRIPTION
The machine-independent kcpuset subsystem provides support for dynamic processor sets. Conceptually kcpuset can be understood to be the ker-
nel equivalent of the user space cpuset(3) interface.
FUNCTIONS
kcpuset_create(retkcp, zero)
The kcpuset_create() function creates a dynamic CPU set and stores the result to retkcp. If the boolean zero is not false, the
allocated set is also initialized to zero.
kcpuset_destroy(kcp)
Destroys the CPU set kcp and schedules any linked CPU sets for deferred destruction.
kcpuset_copy(dkcp, skcp)
Copies the CPU set pointed by skcp to dkcp.
kcpuset_use(kcp)
Marks kcp as being in use by increasing the reference count of the object. Note that initially kcpuset_create() sets the reference
count to 1.
kcpuset_unuse(kcp, lst)
Decreases the internal reference count of kcp, and on the last reference (when the count reaches zero), destroys kcp. If lst is not
NULL, then instead of destroying, kcp will be added to the lst list for a deferred destruction.
kcpuset_copyin(ucp, kcp, len)
Copies the len bytes long user-space CPU set ucp to the kernel CPU set kcp.
kcpuset_copyout(kcp, ucp, len)
Copies the kernel CPU set kcp to the user-space CPU set ucp.
kcpuset_zero(kcp)
Clears the set kcp.
kcpuset_fill(kcp)
Fills the whole set kcp with ones.
kcpuset_set(kcp, cpu)
Adds cpu to the set kcp.
kcpuset_clear(kcp, cpu)
Removes cpu from the set kcp.
kcpuset_isset(kcp, cpu)
Returns 1 if cpu is part of the CPU set kcp.
kcpuset_iszero(kcp)
Returns true if the set kcp is empty.
kcpuset_match(kcp1, kcp2)
Compares the sets kcp1 and kcp2, returning true if these are identical.
kcpuset_merge(kcp1, kcp2)
Merges the set kcp2 to the set kcp1.
kcpuset_atomic_set(kcp, cpu)
The kcpuset_atomic_set() function operates as kcpuset_set(), but the operation is atomic; see atomic_ops(3) for more details.
kcpuset_atomic_clear(kcp, cpu)
Removes cpu from the CPU set kcp atomically.
CODE REFERENCES
The kcpuset subsystem is implemented within sys/kern/subr_kcpuset.c.
SEE ALSO cpuset(3)HISTORY
The kcpuset subsystem first appeared in NetBSD 6.0.
BSD October 6, 2011 BSD