I have an HP PPM (ITG) application that is running an awk command in cygwin bash shell as part of ITG process moving SAP transports on a Windows 2003 server. The awk command checks the first two characters of a file containing return code that was retrieved from the SAP server. It is throwing the... (3 Replies)
Hi,
No need to say I'm new to unix shell scripting.
I have a very simple script that goes this way:
for datos in `ls -rt $UNXLOG/26-Jan*`
do
export arch=`echo $datos |cut -d, -f1`
if
then
export linea1=`grep Debut ${arch}`
export horatot=`echo $linea1 |cut -d' ' -f5`
... (7 Replies)
Hi,
I am compiling following code on my Linux box using "cc" compilers.I am getting the desired o/p but in the it throws message as "shell returned 208".I would like to know whether is it related to a some kind of error code?
1 #include<stdio.h>
2
3 main ()
4 {
... (1 Reply)
Hi everyone,
I have a problem with my shell script. As a quick overview I need to change a template file 6561 times and copy the file into a new catalogue. Thanks to your forum I have managed to write a script to do so:
#!/bin/sh
template=$1
for values in {45,165,285}\ {45,165,285}\... (6 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi guys,
i'm running a program on samsumg 6410 arm cpu board. it caused an "free(): invalid next size (normal)" fail.
i try to use gdb for remote debugging:
1, start gdb server on board:
gdbserver 192.168.1.20:1234 ./HostAP
Process ./HostAP created; pid = 499
Listening on port... (8 Replies)
Hi ,
we have a issue in server, we are running a perl script to connect our clients, but we are not able to connect, every time we are getting the
"Invalid argument error"
Even i checked all the necessary perl modules are i installed in this server,
#create the listen socket
my... (2 Replies)
I'm trying to execute something like this:
exec perl -i -pe 's/\015/\012/g' '${file}'
in my expect script and I get:
error "invalid command name \"perl\".
however, if I run
perl -i -pe 's/\015/\012/g' "/Users/Shared/menu-items.txt"
directly in my terminal, it runs fine. I'm an... (4 Replies)
Hi,
I am running a perl script to automate a process and I keep running into a error can't find the "value"
Can't call method "value" on an undefined value at process_file.pl line 44.
file is CVS
cell is ifdfdxrfmp.ksh
Here is the script I have also attached it as well:
... (2 Replies)
The Follwing packages are installed on my AIX 6.1 box
gcc-4.7.2-1
gcc-c++-4.7.2-1
gcc-cpp-4.7.2-1
gcc-gfortran-4.7.2-1
libgcc-4.7.2-1
libgomp-4.7.2-1
libstdc++-4.7.2-1
libstdc++-devel-4.7.2-1
gmp-5.0.5-1
libmpc-1.0.1-2
libmpc-devel-1.0.1-2
libmpcdec-1.2.6-1
libmpcdec-devel-1.2.6-1... (0 Replies)
Discussion started by: Ashish Gupta
0 Replies
LEARN ABOUT REDHAT
pthread_setschedparam
PTHREAD_SETSCHEDPARAM(3) Library Functions Manual PTHREAD_SETSCHEDPARAM(3)NAME
pthread_setschedparam, pthread_getschedparam - control thread scheduling parameters
SYNOPSIS
#include <pthread.h>
int pthread_setschedparam(pthread_t target_thread, int policy, const struct sched_param *param);
int pthread_getschedparam(pthread_t target_thread, int *policy, struct sched_param *param);
DESCRIPTION
pthread_setschedparam sets the scheduling parameters for the thread target_thread as indicated by policy and param. policy can be either
SCHED_OTHER (regular, non-realtime scheduling), SCHED_RR (realtime, round-robin) or SCHED_FIFO (realtime, first-in first-out). param spec-
ifies the scheduling priority for the two realtime policies. See sched_setpolicy(2) for more information on scheduling policies.
The realtime scheduling policies SCHED_RR and SCHED_FIFO are available only to processes with superuser privileges.
pthread_getschedparam retrieves the scheduling policy and scheduling parameters for the thread target_thread and store them in the loca-
tions pointed to by policy and param, respectively.
RETURN VALUE
pthread_setschedparam and pthread_getschedparam return 0 on success and a non-zero error code on error.
ERRORS
On error, pthread_setschedparam returns the following error codes:
EINVAL policy is not one of SCHED_OTHER, SCHED_RR, SCHED_FIFO
EINVAL the priority value specified by param is not valid for the specified policy
EPERM the calling process does not have superuser permissions
ESRCH the target_thread is invalid or has already terminated
EFAULT param points outside the process memory space
On error, pthread_getschedparam returns the following error codes:
ESRCH the target_thread is invalid or has already terminated
EFAULT policy or param point outside the process memory space
AUTHOR
Xavier Leroy <Xavier.Leroy@inria.fr>
SEE ALSO sched_setscheduler(2), sched_getscheduler(2), sched_getparam(2), pthread_attr_setschedpolicy(3), pthread_attr_setschedparam(3).
LinuxThreads PTHREAD_SETSCHEDPARAM(3)