Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
Hello ,
I have to write a crontab line make a check on a file and, if bigger than 2Gb, to stop apache daemon, delete the file and restart apache .
Someone have suggestions ?
Thanks (2 Replies)
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
hellooo.....
script is: To remove a file from a directory if a starting letter and a file size is given by the user.
My code is:
echo "Enter a letter"
read l
echo "Enter Size"
read size
for i in `ls $l*`
do
s=`stat -c %s $i`
if
then
rm $i
... (1 Reply)
I have several files in a folder and I would like to delete the ones that do not contain all the required information (size) let say 1kb.
Any ideas? (4 Replies)
Hi Friends,
I am new to this , I am working on AIX system and my scenario is to retrive the files from remote system and remove the files from the remote system after retreving files. I can able to retrieve the files but Can't remove files in remote system. Please check my code and help me out... (3 Replies)
Hi all, I have developed a shell script to copy the files from source to destination and simultaneously to delete the copied files in source. I can copy the files but the files cannot be deleted in source side. (3 Replies)
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
LEARN ABOUT ULTRIX
dwtscrollwindowsetareas
DwtScrollWindowSetAreas(3Dwt)DwtScrollWindowSetAreas(3Dwt)Name
DwtScrollWindowSetAreas - Sets up or adds the window region, and the horizontal or vertical scroll bar widgets to the scroll window widget.
Syntax
void DwtScrollWindowSetAreas(widget, horizontal_scroll_bar, vertical_scroll_bar, work_region)
Widget widget;
Widget horizontal_scroll_bar;
Widget vertical_scroll_bar;
Widget work_region;
Arguments
widget Specifies the scroll window widget ID.
horizontal_scroll_bar
Specifies the scroll bar widget ID for the horizontal scroll bar to be associated with the scroll window widget. You can set or
specify this ID only after creating an instance of the main window widget. The attribute name associated with this argument is
DwtNhorizontalScrollBar.
vertical_scroll_bar
Specifies the scroll bar widget ID for the vertical scroll bar to be associated with the scroll window widget. You can set or
specify this ID only after creating an instance of the main window widget. The attribute name associated with this argument is
DwtNverticalScrollBar.
work_region
Specifies the widget ID for the window to be associated with the scroll window work area. You can set or specify this ID only
after you create an instance of the main window widget.
Description
The DwtScrollWindowSetAreas function adds or changes a window work region and a horizontal or vertical scroll bar widget to the scroll win-
dow widget for the application. You must call this function before the scroll window widget is realized, that is, before calling the X
intrinsics function XtRealizeWidget. Each widget is optional and may be passed as NULL.
See AlsoDwtScrollWindow(3Dwt), DwtWindow(3Dwt),
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtScrollWindowSetAreas(3Dwt)