9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
So I need to write a script (script1) which run other script (script2) multiple time, but split the runs.
lets say I need to run 100 times. but I want it to run 5 times at a time and after all the 5 runs of script2 are done anther 5 start.
Script1 define the variable in script2 as the number... (2 Replies)
Discussion started by: galboski
2 Replies
2. UNIX for Dummies Questions & Answers
Hi guys
So I've got this PERL script that for one reason or another I need to run as a user other than the user that created the script.
When I su - to another user the script won't run and doesn't give me any output as to why. No permission denied or anything like that.
I've chmod 777'd the... (5 Replies)
Discussion started by: Jaymoney
5 Replies
3. UNIX for Advanced & Expert Users
i am creating threads in my program using the POSIX interface.
when the thread starts executing i run out of memory and get a core dump.
i have tried to increase the threads stack size using pthread_attr_setstacksize, but of no use since i guess the dynamic memory is allocated on the heap and... (1 Reply)
Discussion started by: aniketkadu2002
1 Replies
4. Shell Programming and Scripting
I have a script that searches for specific information from log files.
#!/bin/sh
sed -n '/*C/,/END/p' /sn/log/OMlog* > crit.out
sed -n '/REPT INITIALIZATION/,/err:/p' /sn/log/OMlog* > switchcc.out
./start.awk /sn/log/OMlog* > ARs.out
./end.awk /sn/log/OMlog* > ARe.out
cat crit.out... (1 Reply)
Discussion started by: grinds
1 Replies
5. UNIX for Advanced & Expert Users
I have a ksh script that executes a program with a predetermined timeout in minutes. If the program takes longer then the timeout then it still completes with a return code of 0. :confused:
I would like to determine how long the program ran. Then if it takes longer than the timeout I would... (7 Replies)
Discussion started by: 2dumb
7 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a problem with the following. I am trying to learn UNIX and as I am not an expert I don't know how to do the following exercise:
Requirement: Show knowledge of how to use some or all of the following commands:
· rm
· cp
· mv
· if
· test
· alias
· getopts and shift (See by... (1 Reply)
Discussion started by: pksb
1 Replies
7. Shell Programming and Scripting
Hi,
I have a problem with the following. I am trying to learn UNIX and as I am not an expert I don't know how to do the following exercise:
Requirement: Show knowledge of how to use some or all of the following commands:
· rm
· cp
· mv
· if
· test
· alias
· getopts and shift (See by... (0 Replies)
Discussion started by: pksb
0 Replies
8. UNIX for Advanced & Expert Users
Hello experts,
I have a series issue in script that result with bad peformence and I wonder if you can assist me.
For example
I have two files:
File-New, size 15Mb.
File-Old, size 1Mb.
File-New content:
a
b
c
k
File-Old content:
d
f
a
b (0 Replies)
Discussion started by: roybe
0 Replies
9. UNIX for Dummies Questions & Answers
I have a command that is found in /usr/ud51/bin called stopudt which safely stops idle database users (let's writes finish, etc).
If I login as root and issue stopudt the process is stopped.
I put a script in cron to run it and it says stopudt not found.
/usr/ud51/bin is in root's PATH. ... (10 Replies)
Discussion started by: michieka
10 Replies
CRASH(8) BSD System Manager's Manual CRASH(8)
NAME
crash -- examine and debug system images
SYNOPSIS
crash [-M core] [-N kernel]
DESCRIPTION
The crash command is used to examine and debug system images.
If run without any arguments, crash operates on the running system.
The options are as follows:
-M core Operate on the specified crash dump instead of the default /dev/mem. Crash dumps should be from the same version of the system
and same machine architecture as the running version of crash, and must be uncompressed.
-N kernel Extract the name list from the specified kernel instead of the default /dev/ksyms.
The command syntax used by crash is the same as the in-kernel debugger. See the ddb(4) manual page for more information.
Operations and facilities that require a running system, such as breakpoints, are not supported by crash.
crash does not provide pagination. However, by using the pipe symbol, output may be sent to commands available from the shell. For example:
crash> ps | more
crash> ps | grep ioflush
SEE ALSO
ps(1), vmstat(1), ddb(4), pstat(8)
HISTORY
The crash command appeared in NetBSD 6.0.
BSD
March 7, 2009 BSD