09-10-2008
A mechanism like "batch file of windows" in Unix
Hi all,
Like in windows OS we have in unix something called "jobs"-term me if i am wrong- to run a sequence of steps which we can exceute at our own will without scheduling like corntab scheduling. can any one tell me what is the structure of this file and provide me with some info with this regards.
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
We have a DEC Alpha 4100 Server with OSF1 Digital Unix 4.0.
Can any one tell me, if there are any commands on this Unix which are equivalent to "top" and "sar" on HP-UX or Sun Solaris ?
I am particularly interested in knowing the CPU Load, what process is running on which CPU, etc.
... (1 Reply)
Discussion started by: sameerdes
1 Replies
2. Windows & DOS: Issues & Discussions
Hi,
How can I execute Unix's ksh equivalent of "cut' and "awk" in Windows XP?
For example, I want to execute ksh commands from Windows command prompt. Is there a place I can download "cut.exe" and "awk.exe" ?
Thanks in advance (4 Replies)
Discussion started by: ihot
4 Replies
3. UNIX for Dummies Questions & Answers
hi all
Actually i am new in unix , and i am using "cygwin" software to practice unix, this is the software we can use in windows itself. some comands are working fine but some are not like "clear", also i want suggestion ,is it good to practice in " cygwin" or not
thank u in advance
... (3 Replies)
Discussion started by: sanjeev1
3 Replies
4. Shell Programming and Scripting
Hello Folks,
I got an issue to be solved. I need to show the user a progress bar while executing an process using shell script
Example:
While updating firmware lets assume this will take 2 min to upgrade i need the shell script to show the progress bar as (0%) and at the end it should... (13 Replies)
Discussion started by: phanivarma
13 Replies
5. Shell Programming and Scripting
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)
Discussion started by: shis100
7 Replies
6. UNIX for Dummies Questions & Answers
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
I have a .ksh script that creates an sftp batch file and runs it through sftp. It works except for one thing. If I try to "put" to a different name, it doesn't use the specified remote name...it still "puts" the original local name.
I've tried both of these, and neither work...it will always... (4 Replies)
Discussion started by: dbiggied
4 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT OSF1
sched_getparam
sched_getparam(3) Library Functions Manual sched_getparam(3)
NAME
sched_getparam - Returns the scheduling parameters of the specified process (P1003.1b)
LIBRARY
Realtime Library (librt.so, librt.a)
SYNOPSIS
#include <sched.h>
int sched_getparam (
pid_t pid,
struct sched_param *param);
PARAMETERS
pid Specifies the ID of the process for which scheduling parameters are to be returned. If pid is zero, the scheduling parameters of
the calling process are returned.
*param Specifies a pointer to a sched_param structure to receive the scheduling parameters of the specified process. The priority field
receives the current priority of the process specified by the pid. The sched_param structure is defined in <sched.h>.
DESCRIPTION
The sched_getparam function returns the scheduling parameters of a process. If the pid is zero, the scheduling parameters are returned for
the calling process.
Use the sched_setparam function to change the scheduling parameters.
Currently, the sched_param structure contains only a priority field.
The priority of a process is inherited across fork and exec calls.
No special privileges are needed to use the sched_getparam function.
RETURN VALUES
On a successful call to the sched_getparam function, a value of 0 (zero) is returned. On an unsuccessful call, a value of -1 is returned
and errno is set to indicate that an error occurred and that no scheduling parameters were returned.
ERRORS
The sched_getparam function fails under the following conditions:
[EINVAL] Invalid value specified for the pid argument, the param pointer is NULL, or one or more of the parameters in it is outside
the valid range.
[ESRCH] No process can be found corresponding to that specified by pid.
RELATED INFORMATION
Functions: getpid(2), sched_getscheduler(3), sched_setparam(3), sched_setscheduler(3)
Guide to Realtime Programming delim off
sched_getparam(3)