10-29-2009
Strange, that, almost exact, question has been asked
yesterday. Part of some course work?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
Hallo,
i need a Prompting read in my script:
read -p "Enter your command: " command
But i always get this Error:
-p: is not an identifier
When I run these in c-shell i get this error
/usr/bin/read: read: bad option(s)
How can I use a Prompt in the read command? (9 Replies)
Discussion started by: wiseguy
9 Replies
3. UNIX for Dummies Questions & Answers
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
4. UNIX for Advanced & Expert Users
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
5. Shell Programming and Scripting
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies
6. 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
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
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
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT ULTRIX
vlimit
vlimit(3) Library Functions Manual vlimit(3)
Name
vlimit - control maximum system resource consumption
Syntax
#include <sys/vlimit.h>
vlimit(resource, value)
Description
This facility has been superseded by
Limits the consumption by the current process and each process it creates to not individually exceed value on the specified resource. If
value is specified as -1, then the current limit is returned and the limit is unchanged. The resources which are currently controllable
are:
LIM_NORAISE Pseudo-limit; if set nonzero then the limits may not be raised. Only the super-user may remove the noraise restriction.
LIM_CPU The maximum number of cpu-seconds to be used by each process.
LIM_FSIZE The largest single file which can be created.
LIM_DATA The maximum growth of the data+stack region via beyond the end of the program text.
LIM_STACK The maximum size of the automatically-extended stack region.
LIM_CORE the size of the largest core dump that will be created.
LIM_MAXRSS a soft limit for the amount of physical memory (in bytes) to be given to the program. If memory is tight, the system will
prefer to take memory from processes which are exceeding their declared LIM_MAXRSS.
Because this information is stored in the per-process information this system call must be executed directly by the shell if it is to
affect all future processes created by the shell; limit is thus a built-in command to
The system refuses to extend the data or stack space when the limits would be exceeded in the normal way. A break call fails if the data
space limit is reached, or the process is killed when the stack limit is reached. Since the stack cannot be extended, there is no way to
send a signal.
A file I/O operation which would create a file which is too large will cause a signal SIGXFSZ to be generated, this normally terminates the
process, but may be caught. When the cpu time limit is exceeded, a signal SIGXCPU is sent to the offending process; to allow it time to
process the signal it is given 5 seconds grace by raising the cpu time limit.
Restrictions
If LIM_NORAISE is set, then no grace should be given when the CPU time limit is exceeded.
See Also
csh(1)
vlimit(3)