Hi,
I'm a beginner in scripting and I recently wrote a bash script that would've worked fine until I realized it needed to be written in csh. Could someone please show me how to correctly change the syntax from bash to csh in this script? Any help will be greatly appreciated. I can provide more... (4 Replies)
Hi All,
I have the following script.
#!/bin/csh
#
# createDATfile.sh
#
cd /export/home/fastserv/bin
source /export/home/fastserv/bin/dbenv.sh
echo `date` >> /export/home/fastserv/bin/log.txt
echo "%INF% Starting send of current FASTSERVICE batch" >>... (4 Replies)
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Ok I asked something similar earlier with no response, so maybe I didn't word it correctly. I'm new at this, so thank you for your help.
Here's what I have right now.
----------------------------
> cat MySourceFile
#!/bin/csh
echo "Please Enter Value For My_Env_Var:"
set answer = $<
... (1 Reply)
Hey I am brand new to this forum and scripting.
I have several documents (1000+) all formated exactly the same. Each document contains 97 lines. I want to pull 3 lines from the documents to populate a file. These 3 lines are line number 9, 24, and 58.
Ok my questions: Instead of using... (3 Replies)
Hey all,
I've only just started using UNIX coding on my Masters project, so am still learning!! The script I've been writing is literally just for me to get used to writing it and seeing what I can do with some data I've been given.
I'm trying to write a script, where the penultimate line... (2 Replies)
I have the following script set up and working properly in bash. It basically copies a set of lines which match "AS1100002" from one file and replaces the same lines in another file.
awk -vN=AS1100002* 'NR==FNR { if($1 ~ N)K=$0; next }
{ if($1 in K) $0=K; print }' $datadir/file1... (7 Replies)
Discussion started by: ncwxpanther
7 Replies
LEARN ABOUT MOJAVE
plockstat
PLOCKSTAT(1)PLOCKSTAT(1)NAME
plockstat - front-end to DTrace to print statistics about POSIX mutexes and read/write locks
SYNOPSIS
plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x opt[=val]]
command [arg...]
plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x opt[=val]]
-p pid
OVERVIEW
The plockstat command is a front-end to DTrace that can be used to print statistics about POSIX mutexes and read/write locks.
Since OS X 10.11, in order to use this, your process must be run with DYLD_LIBRARY_PATH set to contain /usr/lib/system/introspection:
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
Which contains the necessary static DTrace probes.
OPTIONS -v print a message when tracing starts
-A trace contention and hold events (same as -CH)
-C trace contention events for mutexes and rwlocks
-H trace hold events for mutexes and rwlocks
-V print the dtrace script to run
-n count
display only 'count' entries for each event type
-s depth
show stack trace upto 'depth' entries
-e secs
exit after specified seconds
-x arg[=val]
enable a DTrace runtime option or a D compiler option
-p pid attach and trace the specified process id
SEE ALSO dtrace(1)1.0 July 2007 PLOCKSTAT(1)