06-07-2013
Quote:
Originally Posted by
random_thoughts
Hi Jotne, Can you pls explain me what this common does. inside awk $0~u
True if the content of $0 match the content of variable u
9 More Discussions You Might Find Interesting
1. Solaris
I need to capture the following data on an hourly basis through cronjob scheduling:-
1. load averages
2. Total no. of processes.
3. CPU state
4. Memory
5. Top 3 process details.
All the above information is available through the command 'top'. But here we need to automate the same and... (4 Replies)
Discussion started by: subharai
4 Replies
2. Shell Programming and Scripting
dear all,
pls help on this script..
i have many files which will be created every mins in particular directory.
i want to grep a particular string from only for unique hour files.
from the below code i want to grep a string from only 9th hour files .
Ex files:
-rw-r--r-- 1 root ... (5 Replies)
Discussion started by: steve2216
5 Replies
3. Shell Programming and Scripting
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
Discussion started by: worm
10 Replies
4. Shell Programming and Scripting
I have a running log file (jboss_server.log) which rotates at midnight . I need to constantly check and calculate the time for each thread and alert if it doesnt complete within 60 minute. For example my log file has following printed .
I want to run a script in cron every 30 minutes and... (2 Replies)
Discussion started by: gubbu
2 Replies
5. Shell Programming and Scripting
Hi,
I have to upload a file test_201105281100.txt to a ftp location.
The files will be created on hourly basis like test_201105281100.txt, test_201105281200.txt & so on.
After a file is uploaded successfully, I need to rename the file as test_201105281100.success & if it is not uploaded... (11 Replies)
Discussion started by: SunilB2011
11 Replies
6. Shell Programming and Scripting
Hi..
I need to run the script on hourly basis.
How do I write the crontab on hourly basis i.e, 9:00, 10:00.....22:00.. 23:00 hours
Please let me know if the below is correct one for crontab on hourly basis.
00 * * * * ksh myscript.ksh > /dev/null
Regards,
John (3 Replies)
Discussion started by: scriptscript
3 Replies
7. Shell Programming and Scripting
hi all i have a reporting work and i want it to be automated using shell scripting kindly let me know how can i make that possibe .
eg data are :... (2 Replies)
Discussion started by: Avinash shaw
2 Replies
8. Shell Programming and Scripting
Hi All,
I have one file which contains time for request and response.
I want to calculate time difference in milliseconds for each line.
This file can contain 10K lines.
Sample file with 4 lines.
for first line.
Request Time: 15:23:45,255
Response Time: 15:23:45,258
Time diff... (6 Replies)
Discussion started by: Raza Ali
6 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
need your help, i want count respon time max and average my nginx logs, based on hourly or minutes per api...
my nginx.log sample :
10.1.1.1 - - "POST /v2/api/find/outlet/ HTTP/1.1" 200 2667 "-" "okhttp/3.12.0" "118.215.153.47" 0.178 0.178 .
10.1.1.1 - - "POST... (4 Replies)
Discussion started by: fajar_3t3
4 Replies
LEARN ABOUT MOJAVE
assetcachemanagerutil
AssetCacheManagerUtil(8) BSD System Manager's Manual AssetCacheManagerUtil(8)
NAME
AssetCacheManagerUtil -- control the macOS Content Cache
SYNOPSIS
AssetCacheManagerUtil [-a|--all] [-j|--json] [-l|--linger] command
DESCRIPTION
AssetCacheManagerUtil controls the macOS Content Cache. AssetCacheManagerUtil must be run by root except as noted below. The options are:
-a|--all Show all events, not just the end result of the specified command.
-j|--json Print results in machine-parseable JSON format to stdout.
-l|--linger Linger after completing command, to show other events.
The commands are:
activate Activates the content cache. Content caching is deactivated by default. After you activate content caching, restart devices
on your network to take advantage of content caching immediately. Devices on your network will discover this content cache
over time. Devices that are restarted will use this content cache immediately.
deactivate Deactivates the content cache.
isActivated Reports the content cache's activation status. Does not require root.
canActivate Reports whether the content cache is eligible for activation. Does not require root.
flushCache Flushes the content cache.
flushPersonalCache
Flushes all personal (iCloud) content from the content cache.
flushSharedCache
Flushes all shared (non-iCloud) content from the content cache.
status Reports the content cache's status. Does not require root.
settings Reports the content cache's settings. Does not require root.
reloadSettings
Forces the content cache to reload its settings.
moveCacheTo path
Moves the cache to path. The path must end with /Library/Application Support/Apple/AssetCache/Data. The contents of path are
deleted and replaced with the cache.
absorbCacheFrom path read-only|and-destroy
Imports the cache from path. The path must end with either /Library/Application Support/Apple/AssetCache/Data or
/Library/Server/Caching/Data. If the last argument is read-only the cache at path is not modified, otherwise it is emptied.
This command only starts the absorption, which proceeds and finishes in the background.
SEE ALSO
System Preferences > Sharing > Content Caching, AssetCache(8), AssetCacheLocatorUtil(8), AssetCacheTetheratorUtil(8)
macOS June 1, 2019 macOS