Sponsored Content
Full Discussion: UNIX cache problem?
Operating Systems OS X (Apple) UNIX cache problem? Post 302748907 by mattiasvdm on Thursday 27th of December 2012 05:08:24 AM
Old 12-27-2012
UNIX cache problem?

So I worked out a script for Mac OSX from an existing script. This script checks the versionnumber of a plugin and a package. If the plugin version is different from the package it has to update the plugin. The script works fine but the final check fails.

Here is my script:

Code:
#compare version numbers
installedversion=`/usr/bin/defaults read /location/plugin.plugin/Contents/Info CFBundleShortVersionString`
newestversion=`/usr/bin/defaults read /otherlocation/plugin.pkg/Contents/Info CFBundleShortVersionString`
if [ "${installedversion}" != "${newestversion}" ]; then
installer -pkg /otherlocation/plugin.pkg -target /
# check if the installation succeeded
newlyinstalledversion=`/usr/bin/defaults read /location/plugin.plugin/Contents/Info CFBundleShortVersionString`
    if [ "${newestversion}" = "${newlyinstalledversion}" ]; then
        /bin/echo "`date`: SUCCESS: ${newlyinstalledversion} installed..." >> ${logfile}
        else
        /bin/echo "`date`: ERROR: update unsuccessful, version remains at {installedversion}." >> ${logfile}
    fi
fi

So lets say the installedversion is OLD and the newestversion is NEW.
It keeps saying ERROR. If I manually check the version number it's updated to version NEW.
If I add a line to the script to echo the ${newlyinstalledversion} to the log file it says OLD.
I tried to add 10 or 20 seconds 'sleep' after the installer command but that didn't help.
Is this a cache problem?

Last edited by mattiasvdm; 12-27-2012 at 06:37 AM.. Reason: added OS
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX problem? Unix programm runs windows 2000 CPU over 100%

Okee problems...!! What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies

2. UNIX for Advanced & Expert Users

UBC cache vs. Metadata cache

hi, What is the difference between UBC cache and Metadata cache ? where can i find UBC cache Hits and Metadata cache Hits in hp-ux? Advanced thanx for the help. (2 Replies)
Discussion started by: sushaga
2 Replies

3. Solaris

Unix Cache / Buffer

Does anyone know how the unix buffer / cache is set in a Solaris based system ? ( I presume it is a kernel based setting ) I notice from SAR -d that my read cache is consistently at 100% but my write cache frequently falls below 65%. What does this mean. Should I be tuning the write cache and... (1 Reply)
Discussion started by: jimthompson
1 Replies

4. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

5. IP Networking

how can we spoof ethernet by ARP cache poisoning on unix through a program

how can we spoof ethernet by ARP cache poisoning on unix through a program... can anyone post the source code to achieve this... (1 Reply)
Discussion started by: ud4u
1 Replies

6. Linux

Linux cache

Hi all I am trying to understand the kernel memory management and require assistance in this regard. Kernel first creates the cache memory to perform any subsequent allocation to processes. I could not figure out how it is accomplished. Do kernel directly allocates any hardware cache or allocates... (0 Replies)
Discussion started by: joshighanshyam
0 Replies

7. Linux

getting info on Cache Size, Data Cache etc..

Hi all I saw in Microsoft web site www.SysInternals.com a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc.. Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies

8. HP-UX

Performance problem - waiting on cache

My server is running HP-UX 11.23 and one Oracle database. The server has 8 CPUs and is mostly idle all the time. Buffer cache is set to 10%min/max with 5GB memory on the server. I have a user complaining that a batch process is all of a sudden taking a long time to finish. The DBA gave me the... (13 Replies)
Discussion started by: keelba
13 Replies

9. Linux

File cache /Page cache Linux

Hi All, could any one point out any open source test-suites for "File cache" testing and as well as performance test suites for the same. Currently my system is up with Linux/ext4. Regards Manish (0 Replies)
Discussion started by: hmanish
0 Replies

10. Solaris

DNS Cache Problem-Urgent !!!!!!

I have DNS Server running in solaris 10 . There is website called exaple.com ,whcih was hosted in this dns server with IP 1.2.3.4 ,now we deleted the DNS entry of that website from our DNS Server (db.exmaple.com is deleted from named.conf ) and it is hosted with some other name server with IP... (1 Reply)
Discussion started by: sandeep.tk
1 Replies
build-lives-rfx-plugin-multi(1) 			      General Commands Manual				   build-lives-rfx-plugin-multi(1)

NAME
build-lives-rfx-plugin-multi - builds rendered effects for LiVES SYNOPSIS
build-lives-rfx-plugin-multi type [scripts_dir exec_dir] [build_bindir] DESCRIPTION
This perl script builds rendered effects (RFX) plugins for LiVES. If scripts_dir is not defined then type is used to locate the plugin scripts directory and output directory. Type can be builtin (the default), custom, test, or builtinx. The type builtinx forces scripts_dir and exec_dir to be read from parameters and is used during LiVES install, and is the only type which should be used if scripts_dir is specified. Each plugin script in input directory is scanned to find its language code. The script is then passed to the script compiler for that lan- guage. The directory location of the script_compiler may be specified by the build_bindir parameter (as is the case during LiVES installa- tion0; otherwise the user's $PATH will be searched. Return values the script returns the following values 0 - success 1 - the "type" parameter was not defined, or set to an invalid value 3 - the builder for a plugin script was not found SEE ALSO
build-lives-rfx-plugin(1), lives(1) AUTHOR
Gabriel Finch a.k.a Salsaman (salsaman@xs4all.nl) May 9 2010 build-lives-rfx-plugin-multi(1)
All times are GMT -4. The time now is 07:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy