I posted a question on date intervals about a month back asking about how I could be able to go about a user entering the starting year/month/day and an ending year/month/day and then the script automatically cycling through each day of each month of each year that the user has specified.
I... (7 Replies)
hi all,
i wrote a script to mail myself using pine (modified) to keep remind of b'days.
#!/bin/bash
grep "`date +%D |awk -F/ '{print $2+1, $1+0}'`" dataFile >/home/username/mailme
if test -s /home/username/mailme
then
pine -I '^X,y' -subject "Birthday Remainder" username... (4 Replies)
I have a file contains
TASK gsnmpproxy {
CommandLine = $SMCHOME/bin/gsnmpProxy.exe
}
TASK gsnmpdbgui {
CommandLine = $SMCHOME/bin/gsnmpdbgui.exe
I would like to comment and than uncomment specific task eg TASK gsnmpproxy
Pls suggest how to do in shell script (9 Replies)
I want to check process status at regular interval of time ...
so i ha wirtten this BUT its not working when i placed this peace of code in .sh ..
please help me out
#!/bin/sh
w = ps -ef|grep processname | wc - l
echo $w
if ; then
Banner "Proceesname Problem"
else
Banner " Running... (5 Replies)
I have an task definition listing xml file that contains a list of tasks such as
<TASKLIST
<TASK definition="Completion date" id="Taskname1" Some other
<CODE name="Code12"
<Parameter pname="Dog" input="5.6" units="feet" etc /Parameter>
<Parameter... (3 Replies)
divide input values into specified number (-100 or -200) according to the key (a1 or a2 ....)
For ex: if we give -100 in the command line it would create 100 number intervals (1-100, 100-200, 200-300) untill it covers the value 300 in a1.
Note: It should work the same even with huge numbers... (3 Replies)
Hello all,
I have a text files that consists of blocks of text. Each block of text represents a set of Cartesian coordinates for a molecule. Each block of text starts with a line that has a only a number, which is equal to the total number of atoms in the molecule. After this number is a line... (15 Replies)
Hi,
I need your expertise in selecting files from a folder.
I have files named with convention: filename.i.j
where j is an interger from 1 to 16, for each i which is an integer from 1 to 2000.
I would like to select the files with i in regular interval of 50 like
filename.1.j,... (2 Replies)
I need to write a script which can send files via sftp communication continously for half an hour or any given duration of time. I have already written a batch file to send multiple file via SFTP.
but I need to know how can we set a duration of half an hour through shell script. Can we use sleep... (2 Replies)
Hi all,
I hope you can help me with the following question:
I have multiple tables like this:
Chr Start End Zygosity Gene
chr1 153233510 153233510 het LOR
chr1 153233615 153233615 hom LOR
chr1 153233701 153233701 hom LOR
chr1 ... (5 Replies)
Discussion started by: lsantome
5 Replies
LEARN ABOUT SUNOS
wracct
wracct(1M)wracct(1M)NAME
wracct - write extended accounting records for active processes and tasks
SYNOPSIS
/usr/sbin/wracct -i id_list [-t record_type] {process | task}
The wracct utility allows the administrator to invoke the extended accounting system, if active, to write intermediate records representing
the resource usage of a selected set of processes or tasks. For tasks, a record_type option is also supported, allowing the administrator
to request the writing of:
o an interval record, which reflects task usage since a previous interval record (or since task creation if there is no interval
record), or
o a partial record, which reflects usage since task creation.
The following options are supported:
-i id_list Select the IDs of the tasks or processes to write records for. Specify id_list as a comma- or space-separated list of IDs,
presented as a single argument. For some shells, this requires appropriate quoting of the argument.
-t record_type Select type of record to write for the selected task or process. For tasks, record_type can be partial or interval. partial
is the default type, and the only type available for process records.
The following operands are supported:
process Treat the given ID as a process ID for the purposes of constructing and writing an extended accounting record.
task Treat the given ID as a task ID for the purposes of constructing and writing an extended accounting record.
Example 1: Writing a Partial Record
Write a partial record for all active sendmail processes.
# /usr/sbin/wracct -i "`pgrep sendmail`" process
Example 2: Writing an Interval Record
Write an interval record for the task with ID 182.
# /usr/sbin/wracct -t interval -i 182 task
The following exit values are returned:
0 Successful completion.
1 An error occurred.
2 Invalid command line options were specified.
3 Pertinent components of extended accounting facility are not active.
/var/adm/exacct/task
/var/adm/exacct/proc Extended accounting data files.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
acctadm(1M), attributes(5)
13 July 2005 wracct(1M)