I have a clear case command for example.
ct lsprivate -co
this displays the list of checked out files.
and i have many views where i work daily
I need a script which can run daily at our specified time. setting each and every view i have and list the check outs i have in them. and consolidate it in a single file.
and it should also tell how many days old is the check out file is.
So I have a set of directories and files that I need to backup from /directory1/ to /directory2/ each night. I have some UNIX/SSH knowledge but don't assume I know a whole lot b/c I would hate to screw something up. Here's the knowledge I have:
I can access my server via SSH and can navigate to... (10 Replies)
Hi,
I juat wondering how can you set it up so that .sh files will execute automatically once a day. from google I've got use crontab but when I type this into my session it say I am not allowed to use this programme. Any other ways to achieve what I'm looking for?
thanks (1 Reply)
Hello,
I have a script SELECT TO_CHAR(creation_time, 'RRRR Month') "Month",
SUM(bytes)/1024/1024 "Growth in MB"
FROM sys.v_$datafile
WHERE creation_time > SYSDATE-365
GROUP BY TO_CHAR(creation_time, 'RRRR Month')
/
It produces output similar to this
Month ... (2 Replies)
Hi
I am still learning how to write shell scripts, so I started to write a script like this:
#!/bin/sh
date
echo
outputOK () {
echo $1 ""
}
outputOK () {
echo $1 ""
}
for vol in `/usr/bin/grep -E 'hfs|vxfs|nfs|cifs' /etc/fstab | egrep -v '^#' | awk '{ print $3 }'`
do
if... (7 Replies)
find /usr/IBM/FileNet/BulkUploaderScript/$i/Log/SuccessLog \( -newer range_start -a \! -newer range_end \)
-exec wc -l {} \; |awk '{total+=$1-1} END {print total}' >>$LOGFILE
I need to print time stamp of the files int the paticular period .Please modify the above script so that i get... (34 Replies)
I need to create a script which needs to transfer the "<filename>+yyyymmdd".dat file from a unix machine to a linux machine.. daily. we can use an active batch to schedule the script. however, the script needs to detect if the new file is present, if present, then transfer.
any help ?? (1 Reply)
Hi!
Please I need help on the a script that would pick one file in a directory, change its name, them change its permissions, them move to a different directory, but has to be done on a daily basis, and the file that is being moved to its final destination has to have the following format:... (7 Replies)
Hi all
I need to count files on a daily basis and send the output via email, what I am currently doing its simply running the following:ls -lrt *.cdr | awk '{if(($6 == "Jul") && ($7 == "13")) print $0}' | wc -l, which in this case it will count all files with extension "cdr" from the month of... (13 Replies)
Hi All
I have created a file in /etc/cron.daily on redhat linux 7.3 version host
called applicationscript
cat applictaionscript
#!/bin/bash
/prod/data/routine.sh
cat /prod/data/routine.sh
#!/bin/bash
#details
regular=/prod/data/jboss/logs
backup=/prod/data/logs
#echo "Moving logs"... (3 Replies)
Can I run a script no more than twice a day without using cron?
Maybe create a file when script is first run and check its date? (7 Replies)
Discussion started by: drew77
7 Replies
LEARN ABOUT SUSE
subject
Subject(3I) InterViews Reference Manual Subject(3I)NAME
Subject - object with views
SYNOPSIS
#include <InterViews/subject.h>
DESCRIPTION
A subject is an object that has one or more views that it wishes to notify when it changes. The SubjectIteractor class can be used if it
is necessary to iterate through the views of a subject explicitly.
Because subjects are shared, Subject is a subclass of Resource. To allow for the possibility of multiple inheritance, in which case only a
single copy of resource information should be maintained, Resource is a virtual base class.
PUBLIC OPERATIONS
enum UpdateHint {
attaching, detaching, setting, changing
}
This type enumerates possible hints when a subject is notifying a view that it has changed. The attaching hint indicates that a
view has attached to the subject. The detaching hint means that the subject is being deleted and the view should consider itself
detached. The setting hint means that the subject's value has been set, though possibly to the same value as it already has. The
changing hint means that the value is set to something different than it was previously.
virtual void attach(View*)
Add a view to the subject's list.
virtual void detach(View*)
Remove a view from the subject's list.
virtual void notify(UpdateHint = changing)
Notify all the views of a subject that it has been updated.
virtual boolean viewed_by(View*)
Return whether a given view is on the subject's list of views.
virtual void Attach(Interactor*)
This function is equivalent to attach and is provided solely for backward compatibility. It will be removed in a future version.
virtual void Detach(Interactor*)
This function is equivalent to detach and is provided solely for backward compatibility. It will be removed in a future version.
virtual void Notify()
This function is equivalent to notify(changing) and is provided solely for backward compatibility. It will be removed in a future
version.
boolean IsView(Interactor*)
This function is equivalent to viewed_by and is provided solely for backward compatibility. It will be removed in a future version.
SUBJECTITERATOR OPERATIONS
A subject iterator can be used to iterate through the views in a subject.
SubjectIterator(Subject*)
Create a subject iterator for the given subject. The iterator is only valid as long as the subject exists.
virtual void init()
Reset the iteration to start at the beginning of the list. This operation is called by the constructor.
virtual boolean more()
Return whether there are more views in the list.
virtual View* cur()
Return the current view.
virtual void remove()
Remove the current view from the list.
virtual void next()
Move the iteration to the next view in the list.
SEE ALSO View(3I)InterViews 29 June 1989 Subject(3I)