Unsynchronized means the readers of the file read whatever they want to read whenever they need to read it.
You can have large number of processes reading a file at exactly the same time. If you have too many you can reach I/O saturation on huge files. On medium sized files the I/O systems kernel memory cache and disk controller cache can easily hold several GB's of data for a group of files on a system that is not starved for memory. On small desktops with 2GB of RAM this will not fly.
That said: two scripts scripta scriptb running in parallel launched from another bigscript
bigscript:
put bigscript in background so you can keep working:
Or. run it with at:
Any output (like errors) will be emailed to your UNIX account.
This User Gave Thanks to jim mcnamara For This Post:
if i have a program (example admintool), if i want to keep a log of what i did in admintool,
can i do this admintool > admintool_log.
i have tried but the system just waits there....
then i did a kill and see the file.
the file has the main menu screen...
basically, i want to keep a log... (3 Replies)
I wanted to know the format everyone uses for cfg files that are called by shell programs. I do mostly sh and ksh scripts and many times I'm modifying an existing script to do another task.
Recently I have been making my scripts more generic and using configuration files to hold uniq details.... (3 Replies)
Hi All,
I have encountered a problem,please help me.
I have a script in which multiple processes are writing on to the same file .
How should I stop this , I mean lock mechanism can be implemented or we can write the at different files and then concatenate the files.
What would be a better... (1 Reply)
Hi,
i want to call two programs simultaneously from a currently running program so as to distribute the job and fasten the speed.
As of now I call the programs one after the other within the main program.
e.g.
`perl A.pl`;
`perl B.pl`;
how can I run the two paralelly?
urgent ... please... (1 Reply)
I was curious how to tell which programs are accessing a file (libobjc.A.dylib) in /usr/lib
This file seems to be the culprit in a bunch of Safari crashes, and I just wanted to know if and what other programs use it.
Also, I was curious what a good way to find out what files are being written... (4 Replies)
Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Flow of program:
C based CGI is used
CGI1:
-Gets called when user hits upload button(submit) ie form action = CGI1
-Does the file upload (copy to a directory etc)
JS, Ajax fucntion:
-A JS function is called when user hits upload button
-The JS function opens an Ajax request for CGI2... (8 Replies)
Hi,
I'd like to redirect the STDOUT output from my script to a file and simultaneously display it at a console.
I've tried this command:
myscript.sh | tail -f
However, it doesn't end after the script finishes running
I've also tried this:
myscript.sh | tee ~/results.txt
But it writes... (3 Replies)
Hey guys,
Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries.
However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Hello Team-
we would like to implement an approach which has to write the log file simultaneously
when .sql file is executing by Unix process. At present,it is writing the log file
once the process is completed. I've tested the current process with the below
approaches and none of them... (1 Reply)
Discussion started by: Hima_B
1 Replies
LEARN ABOUT SUSE
htcacheclean2
HTCACHECLEAN(8) htcacheclean HTCACHECLEAN(8)NAME
htcacheclean - Clean up the disk cache
SYNOPSIS
htcacheclean [ -D ] [ -v ] [ -t ] [ -r ] [ -n ] -ppath -llimit
htcacheclean [ -n ] [ -t ] [ -i ] -dinterval -ppath -llimit
SUMMARY
htcacheclean is used to keep the size of mod_disk_cache's storage within a certain limit. This tool can run either manually or in daemon
mode. When running in daemon mode, it sleeps in the background and checks the cache directories at regular intervals for cached content to
be removed. You can stop the daemon cleanly by sending it a TERM or INT signal.
OPTIONS -dinterval
Daemonize and repeat cache cleaning every interval minutes. This option is mutually exclusive with the -D, -v and -r options. To
shutdown the daemon cleanly, just send it a SIGTERM or SIGINT.
-D Do a dry run and don't delete anything. This option is mutually exclusive with the -d option.
-v Be verbose and print statistics. This option is mutually exclusive with the -d option.
-r Clean thoroughly. This assumes that the Apache web server is not running (otherwise you may get garbage in the cache). This option
is mutually exclusive with the -d option and implies the -t option.
-n Be nice. This causes slower processing in favour of other processes. htcacheclean will sleep from time to time so that (a) the disk
IO will be delayed and (b) the kernel can schedule other processes in the meantime.
-t Delete all empty directories. By default only cache files are removed, however with some configurations the large number of directo-
ries created may require attention. If your configuration requires a very large number of directories, to the point that inode or
file allocation table exhaustion may become an issue, use of this option is advised.
-ppath Specify path as the root directory of the disk cache. This should be the same value as specified with the CacheRoot directive.
-llimit
Specify limit as the total disk cache size limit. The value is expressed in bytes by default (or attaching B to the number). Attach
K for Kbytes or M for MBytes.
-i Be intelligent and run only when there was a modification of the disk cache. This option is only possible together with the -d
option.
EXIT STATUS
htcacheclean returns a zero status ("true") if all operations were successful, 1 otherwise.
Apache HTTP Server 2008-05-06 HTCACHECLEAN(8)