Installing script and .log file

Hello eveyone, I've the following scriopt that installs 2 packages et copies 2 files into a specific location.
echo installation Firebird
sudo installer -pkg /Autonome/FirebirdSS-1.5.5-4926-powerpc.pkg -target /
echo "Copie des fichiers necessaires pour l'application (Conf et UDF)"
cp /Autonome/FreeAdhocUDF /Library/Frameworks/Firebird.framework/Versions/A/Resources/English.lproj/var
cp -f /Autonome/firebird.conf /Library/Frameworks/Firebird.framework/Versions/A/Resources/English.lproj/var
echo installation Autonome
sudo installer -pkg /Autonome/ClientTheriaqueAutonome.pkg -target /Applications/ClientTheriaqueAutonome
echo suppression des fichiers temporaires
rm -rf /Autonome
rm /Applications/ClientTheriaqueAutonome/LiveUpdate/Test.xml
It works fine for most users, but forme some others who have Mac OS 10.5.4 there's a problem when installing the ClientTheriaqueAutonome package (I'm not sure but after the investigation,I've made I found that it is not installed in its location).
So I'm asking your help to tell me if :
1. There's some specification in the /Applications in the 10.5.4 Mac OS version
2. How I must to change my script to have a log file ( to know if a command exection was succes or fail)
3. There's an other best alternative to do the installation as I've made in the script.
Many thanks in advance for your help and collbaoration.
Best reguads.

there's a problem when installing the ClientTheriaqueAutonome package
That's probably because you're saying:
sudo installer -pkg /Autonome/ClientTheriaqueAutonome.pkg -target /Applications/ClientTheriaqueAutonome
According to man installer, the -target parameter is the device you want to install on, not the directory. Therefore you should specify -target / and the installer package should contain all the necessary data to install the file in /Application/ClientTheriaqueAutonome/
2. How I must to change my script to have a log file ( to know if a command exection was succes or fail).
How are you calling the script?
If you're calling it in the command line you can just append '> /path/to/your.log', e.g.:
./install > /path/to/your.log
If not, you can append '>> /path/to/your.log' to each command:
echo 'Installation Firebird' >> /path/to/your.log
sudo installer -pkg blah blah blah >> /path/to/your.log
... etc.
As for an AppleScript-based solution there are several ways, but what's not clear is how the files are getting setup in the first place. Your script defines the source files as being in /Autonome - how are they getting there?

Similar Messages

  • Shell Script to grep Job File name and Log File name from crontab -l

    Hello,
    I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l.
    #51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1
    #40 17 * * * /home/oracle/refresh/refresh_ux634.sh > /home/oracle/refresh/refresh_ux634.sh.log 2>&1
    In crontab -l, there are many jobs, i need to grep job name like 'refresh_ug634.sh' and corresponding log name like 'refresh_ug634.sh.log '.
    I am thinking of making a universal script that can grep job name, log name and hostname for one server.
    Then, suppose i modify the refresh_ug634.sh script and call that universal script and echo those values when the script gets executed.
    Please can anyone help.
    All i need to do is have footer in all the scripts running in crontab in one server.
    job file name
    log file name
    hostname
    Please suggest if any better solution. Thanks.

    957704 wrote:
    I need help how to grep that information from crontab -l
    Please can you provide some insight how to grep that shell script name from list of crontab -l jobs
    crontab -l > cron.log -- exporting the contents to a file
    cat cron.log|grep something -- need some commands to grep that infoYou are missing the point. This forum is for discussion of SQL and PL/SQL questions. What does your question have to do with SQL or PL/SQL.
    It's like you just walked into a hardware store and asked where they keep the fresh produce.
    I will point out one thing about your question. You are assuming every entry in the crontab has exactly the same format. consider this crontab:
    #=========================================================================
    # NOTE:  If this is on a clustered environment, all changes to this crontab
    #         must be replicated on all other nodes of the cluster!
    # minute        (0 thru 59)
    # hour          (0 thru 23)
    # day-of-month  (1 thru 31)
    # month         (1 thru 12)
    # weekday       (0 thru 6, sunday thru saturday)
    # command
    #=========================================================================
    00 01 1-2 * 1,3,5,7 /u01/scripts/myscript01  5 orcl  dev
    00 04 * * * /u01/scripts/myscript02 hr 365 >/u01/logs/myscript2.lis
    00 6 * * * /u01/scripts/myscript03  >/u01/logs/myscript3.lisThe variations are endless.
    When you get to an appropriate forum (this on is not it) it will be helpful to explain your business requirement, not just your proposed technical solution.

  • System Center 2012 R2 install: SQL server Data file and log file

    This might be a dumb question, but I can't find the answer anywhere.  
    I'm installing a new instance of  System Center 2012 R2 on a new server, I'm stuck on the SQL Server data file section.  Everytime I put in a path, it says that tne path does not exist.  I'm I supposed to be creating some sort of SQL Server
    data file and log file before this installation, I didn't get this prompt when installing System Center 2012 SP1 or hen I upgraded from System Center 2012 SP1 to System Center 2012 R2
    My SQL is on a different server
    Thank you in advanced

    Have you reviewed the setup.log?
    On a side note, why would you put the database file on the same drive as the OS? That defeats the whole purpose of having a remote SQL Server. Why use a remote SQL Server in the first place.
    Jason | http://blog.configmgrftw.com

  • Change the Data and Log file locations in livecache

    Hi
    We have installed livecache in unix systems in the /sapdb mount directory where the installer have created sapdata and sapdblog directories. But the unix team has already created two mount direcotries as follows:
    /sapdb/LC1/lvcdata and /sapdb/LC1/lvclog mount points.
    While installing livecache we had selected this locations for creating the DATA and LOG volumes. Now they are asking to move the DATA and LOG volumes created in sapdata and saplog directories to these mount points. How to move the data and log file and make the database consistent. Is there any procedure to move the files to the mount point directories and change the pointers of livecahce to these locations.
    regards
    bala

    Hi Lars
    Thanks for the link. I will try it and let u know.
    But this is livecache (even it uses MaxDB ) database which was created by
    sapinst and morover is there any thing to be adjusted in SCM and as well as
    any modification ot be done in db level.
    regards
    bala

  • Steps to move Data and Log file for clustered SQL Server

    Hi guys 
    we have Active'passive SQL 2008R2 cluster environment.
    looking for steps to move Data and log files from user Database  and System Database for  SQL Server Clustered Instance. 
    Currently Data and log  files resides on same drive for user and system Databases..
    Thanks
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

    Try the below link
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/468de435-3432-45c2-a50b-23519cd2686e/moving-the-system-databases-in-a-sql-cluster?forum=sqldisasterrecovery
    -Prashanth

  • Process Flow ignores name and location for Control- and Log-Files

    Hi!
    Our OWB Version is 10.1.0.3.0 - DB Version 9.2.0.7.0 - OWF Version 2.6.2
    Clients and server are running on Windows. Database contains target schemas as well as OWB Design and Runtime, plus OWF repositories. The source files to load reside on the same server as the database.
    I have for example a SQL*Loader Mapping MAP_TEXT which loads one flat file "text.dat" into a table stg_text.
    The mapping MAP_TEXT is well configured and runs perfect. i.e. Control file "text.ctl" is generated to location LOC_CTL, flat file "text.dat" read from another location LOC_DATA, bad file "text.bad" is written to LOC_BAD and the log file "text.log" is placed into LOC_LOG. All locations are registered in runtime repository.
    When I integrate this mapping into a WorkFlow Process PF_TEXT, then only LOC_DATA and LOC_BAD are used. After deploying PF_TEXT, I execute it and found out, that Control and Log file are placed into the directory <OWB_HOME>\owb\temp and got generic names <Mapping Name>.ctl and <Mapping Name>.log (in this case MAP_TEXT.ctl and MAP_TEXT.log).
    How can I influence OWB to execute the Process Flow using the locations configured for the mapping placed inside?
    Has anyone any helpfull idea?
    Thx,
    Johann.

    I didn't expect to be the only one to encounter this misbehaviour of OWB.
    Meanwhile I found out what the problem is and had to recognize that it is like it is!
    There is no solution for it till Paris Release.
    Bug Nr. 3099551 at Oracle MetaLink adresses this issue.
    Regards,
    Johann Lodina.

  • Sql server data file and log file

    hello experts
    what is the best way to save data file and log file in a two node cluster environment. i have an active\passive cluster with windows server 2008r2 enterprise and sql server 2008r2. i am new to the environment and i noticed that all system and user databases
    including their data and log files are stored in one drive, just curious, what is the best practise in such kinds of scenario, thank you as always for your help.

    Make sure  you have valid/tested  backup strategy for both system and user databases.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to design SQL server data file and log file growth

    how to design SQL DB data file and log file growth- SQL server 2012
    if my data file is having 10 GB sizze and log file is having 5 GB size
    what should be the size in MB (not in %) of autogrowth. based on what we have to determine the ideal size of file auto growth.

    It's very difficult to give a definitive answer on this. Best principal is to size your database correctly in advance so that you never have to autogrow, of course in reality that isn't always practical.
    The setting you use is really dictated by the expected growth in your files. Given that the size is relatively small why not set it to 1gb on the datafile(s) and 512mb on the log file? The important thing is to monitor it on an on-going basis to see if that's
    the appropriate amount.
    One thing you should do is enable instant file initialization by granting the service account Perform Volume Maintenance tasks in group policy. This will allow the data files to grow quickly when required, details here:
    https://technet.microsoft.com/en-us/library/ms175935%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
    Also, it possible to query the default trace to find autogrowth events, if you wanted you could write an alert/sql job based on this 
    SELECT
    [DatabaseName],
    [FileName],
    [SPID],
    [Duration],
    [StartTime],
    [EndTime],
    CASE [EventClass]
    WHEN 92 THEN 'Data'
    WHEN 93 THEN 'Log' END
    FROM sys.fn_trace_gettable('c:\path\to\trace.trc', DEFAULT)
    WHERE
    EventClass IN (92,93)
    hope that helps

  • Do we need to format data and log files with 64k cluster size for sql server 2012?

    Do we need to format data and log files with 64k cluster size for sql server 2012?
    Does this best practice still applies to sql server 2012 & 2014?

    Yes.  The extent size of SQL Server data files, and the max log block size have not changed with the new versions, so the guidance should remain the same.
    Microsoft SQL Server Storage Engine PM

  • 2005 database and log file locations

    Is there a SQL query to list where exactly the database and log files reside for all databases on an instance (sql server 2005)?

    You can query the Information form DMV
    sys.master_files (Transact-SQL)
    SELECT *
    FROM [sys].[master_files]
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I don't know how to install Mp3 and PDF file from my computer to IPhone?

    I don't know how to install Mp3 and PDF file from my computer to IPhone? Please who can help me. Thanks

    Please Get the iPhone User Manual for iOS 5.
    Put such files into iTunes, sync to phone. Everything syncs from iTunes to phone.

  • Cannot install .pkg and .mpkg files

    I have recently tried to install .pkg and .mpkg files but without success. When I double-click on a file, the installer icon appears in dock but I get the following error message: The operation couldn’t be completed. (com.apple.installer.pagecontroller error -1.).
    The problem persists despite repairing permissions.
    I have read several messages about this problem but there seems to be only one solution, and that is to reinstall the OS. I am seriously trying to avoid this unless there is a way to recover all my applications, including Parallels Desktop, Windows 7 and other Win applications.
    I would greatly appreciate any advice. Many thanks.

    The problem persists despite repairing permissions.
    Did you restart your computer after doing the above?
    Disconnect all peripherals from your computer. Boot from your install disc & run _*Repair Disk*_ from the utility menu. To use the Install Mac OS X disc, insert the disc, and restart your computer while holding down the C key as it starts up.
    Select your language.
    Once on the desktop, select Utility in the menu bar.
    Select *Disk Utility.*
    Select the disk or volume in the list of disks and volumes, and then click *First Aid.*
    Click _*Repair Disk.*_
    Restart your computer when done.
    Repair permissions after you reach the desktop-http://docs.info.apple.com/article.html?artnum=25751

  • Virtualbox - install build and header files for your current kernel

    I have initially installed virtualbox before upgrading the Arch
    Also took backup of the kernle before upgrading since kernel26 2.6.30 is having problem with virtualbox
    After upgrading I have configure the grub to use the previous kernel i.e 2.6.28
    Later  installed xorg and want to install the video drivers from VBox additions
    but running
    sh VBoxLinuxAdditions_x86.run
    i get the following
    install build and header files for your current kernel
    The current kernel version is 2.6.28 Arch
    What are the build and header files I have to install or search with pacman
    And since i have upgraded the system will I able to look up the header and build files needed for kernel 2.6.28

    dmartins - he's talking about his kernel's headers, not the kernel-headers package - they are two very differnet things.
    sant527 - when you backed up the 2.6.28 kernel, did you remember the files in /usr/src/linux-2.6.28-ARCH/ ? They're what VBox is looking for.

  • My Mac won't install mpkg and pkg files.

    My Mac won't install mpkg and pkg files.  Whenever I double-click an pkg or mpkg file, I get the dialog box to "choose an application" to open it.   After some searching, I discovered I do not have the installer.app.  I tried to Repair Disk from my Snow Leopard DVD but every time it boots from the DVD, my computer crashes.  Any suggestions?

    You have the installer app.  It is located in /System/Library/CoreServices. 
    Use the finder's Go menu, Go to Folder... and type /System/Library/CoreServices to open the CoreServices folder.   You should see it in there. If you do not see it there then that would beg the question what else might be missing and perphas you need to do an update (re)install (or restore form a hopefully good backup).
    To try to reassoicatate .[m]pkl's with the Installer, take one of your .[m]pkg's and do a finder Get Info on it and set the Open with... to the Installer app.  If the Installer app is not shown use Other... at the bottom of the list to navigate to the CoreServices folder and select Installer.  Then click the Change All... button.
    I am not sure why your [.m]pkgs would have lost their Launch Services association with Installer in the first place (unless it really is missing).

  • Export dump file and log file  name as sysdate in script

    Hi to All,
    Can anybody help me to give logical backup export dump file namd log file name is as contain sysdate in its name so that we can Uniquelly identified it.
    Regards
    DXB_DBA

    On windows it gets a bit hairy as there really is no clean and nice way of doing it.There are a couple of options.
    1. If you can rely on dateformat not changing, you can use a static substring expression. For example, the following might work w/ finnish locale echo %date:~3,2%%date:~6,2%%date:~9,4%Similarly, when you know the dateformat you can tokenize the output of 'date /t' and discard the tokens you don't want.
    2. You can set dateformat to your liking and then just use %date% in your script
    3. You can run a "SELECT to_char(sysdate,..." into a file and then read that file in your script.
    4. Simon Sheppard also has a solution you could use as a basis. I have a slight issue with the approach, but that could just be me.
    5. Use gnuwin32 or similar ;)
    Also note that %date% env var is set automatically from w2k onwards, so some of the solutions might not work w/ older versions.

Maybe you are looking for

  • Restrict the creation of customer master records at sales area level

    I know that you can supress fields at the company code and sales area level in customer master, but, is there a way in configuration to restrict the creation of a customer master record at the company code and sales area levels?  Only the general dat

  • Cannot convert between unicode and non-unicode string datatypes

      My source is having 3 fields : ItemCode nvarchar(50) DivisionCode nvarchar(50) Salesplan (float) My destination is :  ItemCode nvarchar(50) DivisionCode nvarchar(50) Salesplan (float) But still I am getting this error :  Column ItemCode cannot conv

  • Question about JMS package

    Dear all, I installed J2EE package, and I thought it will include javax.jms.*. However, the netbean still tell me that the package is not installed. Could you please tell me what should I install to include javax.jms ?? thanks

  • Removing a material variant

    hi gurus, let´s say I created a material master and entered a ConfigurableMaterial in the MRP-View. Let´s also say I already did a configuration. Is there a way to remove this?

  • I changed my Apple ID and now cannot use iMessage or FaceTime on my iPad mini

    I have changed my Apple ID and cannot use face time and iMessage. When I try to sign in it says there is no network connection, which there is.