Create log File for my Script

i need two things for my powershell script
1-show successful message if script run successfully
2- if script run with error write error in log file
Please Guide me
$Folders1 = "C:\inetpub\temp\YYY"
cd $Folders1
md $Folders1\Change
Copy-Item * Change -recurse -Force -Exclude Change
md $Folders1\Change\IPC
Move-Item Change\ZZZ Change\ZZZ
xcopy ZZZ Change\IPC\ZZZ /s /i
xcopy OrgFundamental Change\IPC\OrgFundamental /s /i
xcopy Card Change\Card-ib /s /i
$Folders2 = Get-ChildItem $Folders1\Change
foreach($f in $Folders2)
if ($f.name -notlike "IPC" -and $f.name -notlike "CardScheduler" -and $f.name -notlike "Scheduler")
md Change\$f\bin
Move-Item Change\$f\*.dll Change\$f\bin
Get-ChildItem -Path Change\$f "*.exe.config" | Rename-Item -NewName web.config

This is sort of separate from error handling, but when it comes to logging what happens in my scripts, I have two approaches. If the system is running PowerShell 3.0 or later, and I don't care about console output (say, if the script is running as a scheduled
task, and no one will be looking at it interactively anyway), then sometimes I'll run the script like this:
PowerShell.exe -NoProfile -File 'c:\path\to\myScript.ps1' *> 'c:\Logs\someLogFile.txt'
The *> operator (introduced in PowerShell 3.0) redirects the Output, Error, Warning, Verbose and Debug streams, in this case, redirecting them all to a file.
More frequently, though, I use the
PowerShellLogging module.  This has a few advantages over the redirection operator:
It works with PowerShell 2.0.
Output can be displayed both on-screen and sent to a log file, with minimal modification to the script code.
You can easily control which streams go to which files in any combination you like.
You can control the content of what gets sent to the log file.  When using the stock Enable-LogFile cmdlet, you automatically get date and timestamps prepended to each non-blank line in the file.
Using this module in a script only requires two lines of code (and possibly only one, if you're running PowerShell 3.0 or later with module auto-loading enabled):
Import-Module PowerShellLogging
$logFile = Enable-LogFile -Path 'c:\Logs\someLogFile.txt'
It's also a good idea (but not strictly required) to pass your $logFile object to Disable-LogFile when your script finishes, so no other console output bleeds into your log file before the garbage collector comes along and stops that from happening.

Similar Messages

  • LOG FILE for batch scripting in MAXL

    Hello,
    I just wanted to know how to create a LOG FILE for batch scripting.
    essmsh E:\Batch\Apps\TOG_DET\Scripts\unload_App.msh
    copy e:\batch\apps\tog_det\loadfile\gldetail.otl e:\hyperion\analyticservices\app\tog_det\gldetail /Y
    essmsh E:\Batch\Apps\TOG_DET\Scripts\Build_Hier_Data.msh
    REM
    ECHO OFF
    ECHO Loading GL actuals into WFS \ Combined......
    E:\HYPERION\common\Perl\5.8.3\bin\MSWin32-x86-multi-thread\PERL.EXE E:\Batch\Apps\WFS.COMBINED\AMLOAD\WFSUATAMLOAD.PLX
    E:\HYPERION\common\Perl\5.8.3\bin\MSWin32-x86-multi-thread\PERL.EXE E:\Batch\Apps\WFS.COMBINED\AMLOAD\WFSUATAMLOAD.PLX
    Drop object d:\NDM\Data\StampFiles\STAMPLOADBKUP.csv of type outline force;
    Alter object d:\NDM\Data\StampFiles\STAMPLOAD_cwoo.csv of type outline rename to d:\NDM\Data\StampFiles\STAMPLOADBKUP.CSV;
    SET LogFile=E:\Batch\Apps\TOG_DET\Logs.log
    This file does not generate log file can any help me what might be the problem? Even though some of the steps above are not correct it should generate me log file atleast. I need syntax or whatever it is to generate Log file.
    Regards
    Soma

    I wanted to have a logfile of the following batch script regardless of whether the script is running or not.
    essmsh E:\Batch\Apps\TOG_DET\Scripts\unload_App.msh
    copy e:\batch\apps\tog_det\loadfile\gldetail.otl e:\hyperion\analyticservices\app\tog_det\gldetail /Y
    essmsh E:\Batch\Apps\TOG_DET\Scripts\Build_Hier_Data.msh
    REM
    ECHO OFF
    ECHO Loading GL actuals into WFS \ Combined......
    E:\HYPERION\common\Perl\5.8.3\bin\MSWin32-x86-multi-thread\PERL.EXE E:\Batch\Apps\WFS.COMBINED\AMLOAD\WFSUATAMLOAD.PLX
    Drop object d:\NDM\Data\StampFiles\STAMPLOADBKUP.csv of type outline force;
    Alter object d:\NDM\Data\StampFiles\STAMPLOAD_cwoo.csv of type outline rename to d:\NDM\Data\StampFiles\STAMPLOADBKUP.CSV;
    What I really want is I need a log file of the above batch script, how the above scripts are running. I do not care whether they are giving me positive results but I need to know what is happening in logfile. HOw will the log file be generated.
    Regards
    SOma

  • Log file for sql script

    Hi all,
    i ran a sql script to create indexes. it finishedits job. Now if I want to have the log of that what should have I added to the script.
    (The sql script is nothing but a bunch of create index statements)

    Hi,
    Use SPOOL.
    Eg:
    spool c:\test.log
    select * from dba_users;
    spool offMore info here:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12043.htm#SQPUG125
    HTH,
    Paulo.

  • Problem in creating log file on Ubuntu(Linux)

    hi
    I have developed a project in java. which creates log file for exception handling. This is working fine on Windows but When I run the jar file on ubuntu then it is not creating log file and throwing an error.
    Error Message="Permission Denied UnixFileSystem.java createFileExclusively()"
    Code is :
    strStartupPath = new java.io.File("").getAbsolutePath();
    DateFormat dateformat = new SimpleDateFormat("yyyyMMdd");
    Date date = new Date();
    String strFileName = strStartupPath + "\\" + dateformat.format(date) + ".log";
    File logFile = new File(strFileName);
    Your assistance will be appriciated.
    Sonal

    If you want to do this properly then you will have to make it OS specific. Various security systems on each platform will prevent you from freely writing your logfile unless you choose the correct location. The applications folder under MacOSX, for instance, requires Admin privileges. Under MacOSX and Windows, log files are typically stored in the Applications Data resp. /Library/Logs or ~/Library/Logs folder in MacOS X. In Unix and Linux you will typically use /var/log directory.
    I think your question is rather Java than Linux specific, but there is a lot of information available for free on the web.
    Perhaps the following example can help you to determine the OS:
    public static final class OsUtils
       private static String OS = null;
       public static String getOsName()
          if(OS == null) { OS = System.getProperty("os.name");
       public static boolean isWindows()
          return getOsName().startsWith("Windows");
       public static boolean isUnix() // and so on
    }Edited by: Dude on Apr 16, 2011 12:58 AM

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • How to create different log files for different levels

    Hi,
    Can some one please help me with my problem I have here?
    I want to send log data to two diffrent files depending on the logging level such as DEBUG and WARN using the same logger instance.
    How can you configure this in log4j.properties.
    Please post sample code for log4j.properties to achieve this.
    Thanks in advance.
    Anurag SIngh

    Hi,
    I have tried your code. the issue is other log file for error is blank. its not writting log to that file.
    following is the code of my log4j.properties
    Please read the code first
    # Set root logger level to DEBUG and its only appender to A1.
    log4j.rootCategory=DEBUG,A1
    #Appender and its layout for A1
    log4j.appender.A1=org.apache.log4j.FileAppender
    log4j.appender.A1.layout=org.apache.log4j.PatternLayout
    log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %log4j.appender.A1.Threshold=DEBUG
    log4j.appender.A1.File=./LogonApplication_Debug.log
    log4j.appender.A1.Append=true
    #Appender and its layout for A2
    log4j.appender.A2=org.apache.log4j.FileAppender
    log4j.appender.A2.layout=org.apache.log4j.PatternLayout
    log4j.appender.A2.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %
    log4j.appender.A2.Threshold=ERROR
    log4j.appender.A2.File=./LogonApplication_Error.log
    log4j.appender.A2.Append=true
    In my logger class i have written something like this:
    public static Logger myLogger = Logger.getLogger (LoggerTest.class.getName());
         public static void main(String args[]){
              myLogger.debug("I have logged a debug message");
              myLogger.error("I have logged an error message");
    Issue:
    Now the problem is that it is creating two files specified in the configuration but it is logging messages both the messages debug and error in only ./LogonApplication_Debug.log file.
    Though it is creating the ./LogonApplication_Error.log file, but it is only blank.
    Can you please trace whats missing/wrong.
    Thanks a lot.
    Shanu

  • How to create different log files for different users in log4j

    I want to create different logs for different users, using different appenders for each user so that logs are created in his file only.
    Confusion:How to direct them to different files in my logger class

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • Is it possible to create materialized view log file for force refresh

    Is it possible to create materialized view log file for force refresh with join condition.
    Say for example:
    CREATE MATERIALIZED VIEW VU1
    REFRESH FORCE
    ON DEMAND
    AS
    SELECT e.employee_id, d.department_id from emp e and departments d
    where e.department_id = d.department_id;
    how can we create log file using 2 tables?
    Also am copying M.View result to new table. Is it possible to have the same values into the new table once the m.view get refreshed?

    You cannot create a record as a materialized view within the Application Designer.
    But there is workaround.
    Create the record as a table within the Application Designer. Don't build it.
    Inside your database, create the materialized with same name and columns as the record created previously.
    After that, you'll be able to work on that record as for all other within the Peoplesoft tools.
    But keep in mind do never build that object, that'll drop your materialized view and create a table instead.
    Same problem exists for partitioned tables, for function based-indexes and some other objects database vendor dependant. Same workaround is used.
    Nicolas.

  • 12c Create Control File for Entire CDB (CDB-root + PDBs)

    Hi,
    In 12c, I understand that there is a single redo log and a single control file for an entire CDB. My question is what datafiles should I use to create control file for the entire CDB. According to Managing Control Files, I suppose I should use all the datafiles (the result of query from CDB-Root: select name from v$datafile), but in practice, the control file creation process can only be successful when I use CDB-Root databfiles. Thanks in advance for any advice.

    The actual error message is duplicate tablespace (system, sysaux), but the root-CDB and PDBs should have separate system and sysaux. The following is the script I used.
    CREATE CONTROLFILE REUSE DATABASE "CDB" RESETLOGS  ARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 1024
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 '/cdbdata/cdb/redo01.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 2 '/cdbdata/cdb/redo02.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 3 '/cdbdata/cdb/redo03.log'  SIZE 50M BLOCKSIZE 512
    DATAFILE
      '/cdbdata/cdb/system01.dbf',
      '/cdbdata/cdb/sysaux01.dbf',
      '/cdbdata/cdb/undotbs01.dbf',
      '/cdbdata/cdb/pdbseed/system01.dbf',
      '/cdbdata/cdb/users01.dbf',
      '/cdbdata/cdb/pdbseed/sysaux01.dbf',
      '/cdbdata/cdb/pdb1/system01.dbf',
      '/cdbdata/cdb/pdb1/sysaux01.dbf',
      '/cdbdata/cdb/pdb1/pdb1_users01.dbf'
    CHARACTER SET WE8MSWIN1252

  • I am getting error while creating Control file for a fla file upoad in HANA

    Hi Experts,
    I am getting the following error when I try to create crtrol file for a flat file extraction in SAP HANA.
    Could not execute 'import data into table P935718."COPATBL" from 'COPATBL.csv' record delimited by '\n' fields ...'
    SAP DBTech JDBC: [257] (at 14): sql syntax error: incorrect syntax near "into": line 2 col 1 (at pos 14)
    Here is the code I have used to create control file after I creating the table.
    import data
    into table P935718."COPATBL"
    from 'COPATBL.csv'
        record delimited by '\n'
        fields delimited by ','
        optionally enclosed by '"'
    error log 'P935718.COPATBL.err'
    p935718 is my user ID, COPATBL is my table created, COPABL.CSV is a flat file.
    Please help me in this regard.
    Thanks,
    Guna

    Hello,
    guessing from the error message it looks that you are trying to execute "import data" as SQL command.
    Please note that import data is NOT SQL command but it is syntax for control file. You need to create file with this syntax on server and then use command: IMPORT FROM '/<path>/<filename>.ctl'
    In a shortcut:
    1.- create comma separated CSV file with your data - <source cvs>.csv
    2.- upload CVS file to HANA server
    3.- create the control file <filename>.ctl:
    import data
    into table <schema>."<table name>"
    from '<source cvs>.csv'
    record delimited by '
    fields delimited by ','
    optionally enclosed by '"'
    error log '<file name>.err'
    4.- execute command:
    IMPORT FROM '/<path>/<filename>.ctl'
    Please check following threads:
    How to load CSV files into HANA
    Will HANA supports Bulkload
    Tomas

  • Avoid creation of log file for external table

    Hi
    This script is creating log file in the ext directory. How to avoid it. Can you specify the syntex.
    Thanks alot.
    Bhaskar
    CREATE TABLE datfiles_list
    (file_name varchar2(255))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY ext_dir
    ACCESS PARAMETERS (RECORDS DELIMITED BY NEWLINE)
    LOCATION ('datfiles_list.txt')
    );

    Example
    CREATE TABLE datfiles_list
    (file_name varchar2(255))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY ext_dir
    ACCESS PARAMETERS (RECORDS DELIMITED BY NEWLINE NOLOGFILE)
    LOCATION ('datfiles_list.txt')
    );

  • I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway inst

    I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway installing PSE-10 or uninstalling it. If I send the  PDF file that has been automatically converted to a PSE-10 the person I send the file to can not open it because they do not have PSE-10. What can I do to stop PSE-10 from converting my PDF files? Don't tell me to upgrade PSE-10 I tried their on-line program and  it is too advance for a hobby photographer like myself and their Help Desk is impossible to reach.

    Hi,
    Can you please share the logs?
    You can use the Adobe  Log Collector tool (Log Collector Tool) and share the corresponding zip file @ [email protected]
    Thanks,
    Shikha

  • I want to create xml file using photoshop script and also i can easily add, modify, delete based on file name

    Hi,
    Please help me for this.
    I need to create XML file for mentioned below. when i run the photoshop script i need deatails for active document name, date, time and status.
    <?xml version="1.0" encoding="UTF-8"?>
    <sample>
    <filename>Cradboard_Boxes_Small.tif</filename>
    <date>today date</date>
    <starttime>now</starttime>
    <status>delivered</status>
    </sample>
    <sample>
    <filename>Cardboard_Boxes_Student_Vaue_Pack.jpg</filename>
    <date>today date</date>
    <starttime>now</starttime>
    <status>delivered</status>
    </sample>
    I need read that xml after creating and modify based on file name. i need to modify status after file finished.
    if the file name is already exist i want to modify or delete or add whatever i need.
    Kindly help me simple way

    You may want to look into getting Xtools ps-scripts - Browse Files at SourceForge.net then.  Most of the support is for ActionManager script code where XML code is use as an intermediate step.  There are quite a few Photoshop script in XTools .   Ross Huitt is an expert javascript programmer though is is fed up with Adobe's lack of support for Photoshop scripting particularly the bugs in ScriptUI he is still maintaining tool he  has created for us free of charge. Tools like Image Processor Pro. None of his scripts are save as binary so you can read all of his code there is a wealth of knowledge in there....
    Also there is a scripting forum Photoshop Scripting

  • How to create xpi file for my own extension?

    I have created my own extension and directly added profile extension folder in my system.its working fine. but while installing extension using .xpi file its produce error "Install script not found
    -204".Please explian me how to create .xpi file for my extension folder.
    I hope you can help this issues.
    Thanks in advance.
    Regards
    vasanthi

    See this:
    https://developer.mozilla.org/en/Building_an_Extension

  • Makepkg issue: cannot create temp file for here-document

    Hi there,
    Since few weeks ago i'm not able to build aur packages. I use yaourt  but i notice the problem comes from makepkg (i searched for the output message and found fakeroot related issues). Here the complete log of, for example, launching makepgk on with the ruby-headers PKGBUILD:
    $ makepkg
    ==> Creazione del pacchetto: ruby-headers 1.9.2_p136-1 (mer 9 feb 2011, 00.27.35, CET)
    ==> Controllo delle dipendenze per l'esecuzione in corso...
    ==> Controllo delle dipendenze per la compilazione in corso...
    ==> Download dei sorgenti in corso...
    -> Download di ruby-1.9.2-p136.tar.bz2 in corso...
    --2011-02-09 00:27:35-- ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.bz2
    => "ruby-1.9.2-p136.tar.bz2.part"
    Risoluzione di ftp.ruby-lang.org... 221.186.184.68
    Connessione a ftp.ruby-lang.org|221.186.184.68|:21... connesso.
    Accesso come utente anonymous ... Login eseguito!
    ==> SYST ... fatto. ==> PWD ... fatto.
    ==> TYPE I ... fatto. ==> CWD (1) /pub/ruby/1.9 ... fatto.
    ==> SIZE ruby-1.9.2-p136.tar.bz2 ... 8819324
    ==> PASV ... fatto. ==> RETR ruby-1.9.2-p136.tar.bz2 ...
    Errore nella risposta del server, chiusura della connessione di controllo.
    Altro tentativo in corso.
    --2011-02-09 00:28:47-- ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.bz2
    (tentativo: 2) => "ruby-1.9.2-p136.tar.bz2.part"
    Connessione a ftp.ruby-lang.org|221.186.184.68|:21... connesso.
    Accesso come utente anonymous ... Login eseguito!
    ==> SYST ... fatto. ==> PWD ... fatto.
    ==> TYPE I ... fatto. ==> CWD (1) /pub/ruby/1.9 ... fatto.
    ==> SIZE ruby-1.9.2-p136.tar.bz2 ... 8819324
    ==> PASV ... fatto. ==> RETR ruby-1.9.2-p136.tar.bz2 ... fatto.
    Lunghezza: 8819324 (8,4M) (non autorevole)
    100%[====================================================================>] 8.819.324 107K/s in 1m 58s
    2011-02-09 00:30:51 (72,8 KB/s) - "ruby-1.9.2-p136.tar.bz2.part" salvato [8819324]
    ==> Validazione dei file sorgenti con md5sums in corso...
    ruby-1.9.2-p136.tar.bz2 ... Verificato
    ==> Estrazione dei sorgenti in corso...
    -> estrazione di ruby-1.9.2-p136.tar.bz2 con bsdtar in corso...
    ==> Avvio di build() in corso...
    ==> Entrata nell'ambiente di fakeroot in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Avvio di package() in corso...
    ==> Rimozione dei dati superflui in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione degli altri file in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione delle pagine man ed info in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione dei simboli non necessari dai binari e dalle librerie in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Creazione del pacchetto in corso...
    -> Generazione del file .PKGINFO in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione del pacchetto in corso...
    xz: /tmp/rb_hdrs/ruby-headers-1.9.2_p136-1-any.pkg.tar: impossibile rimuovere: Successo
    Hints?
    Thanks in advance

    That time it was in /tmp/ruby_headers (which i created) but it happens with yaourt too and for every pkg i tried.
    [miche@bob tmp]$ yaourt -S ruby_headers
    ruby_headers non trovato su AUR
    [miche@bob tmp]$ yaourt -S ruby_header
    ruby_header non trovato su AUR
    ^[[A[miche@bob tmp]$ yaourt -S ruby-headers
    ==> Continuazione dalla compilazione precedente
    ==> Scaricamento del PKGBUILD di ruby-headers da AUR...
    Comment by: hilton on Tue, 28 Dec 2010 03:51:14 +0000
    Updated to 1.9.2_p136!
    First Submitted: Sat, 13 Nov 2010 20:25:52 +0000
    ruby-headers 1.9.2_p136-1 : A package of all Ruby headers needed by some gems like ruby-debug.
    ( Pacchetto non supportato: Potenzialmente pericoloso ! )
    ==> Modificare il PKGBUILD (altamente raccomandato per ragioni di sicurezza) ? [S/n]("A" per annullare)
    ==> ----------------------------------------------
    ==>n
    ==> Dipendenze di ruby-headers
    - ruby (già installato)
    ==> Continuare la compilazione di ruby-headers? [S/n]
    ==> ----------------------------------------------
    ==>s
    ==> Install or build missing dependencies for ruby-headers:
    ==> Compilazione e installazione del pacchetto
    ==> Dipendenze di ruby-headers
    - ruby (già installato)
    ==> Creazione del pacchetto: ruby-headers 1.9.2_p136-1 (mer 9 feb 2011, 01.23.54, CET)
    ==> Controllo delle dipendenze per l'esecuzione in corso...
    ==> Controllo delle dipendenze per la compilazione in corso...
    ==> Download dei sorgenti in corso...
    -> È stato trovato ruby-1.9.2-p136.tar.bz2
    ==> Validazione dei file sorgenti con md5sums in corso...
    ruby-1.9.2-p136.tar.bz2 ... Verificato
    ==> Estrazione dei sorgenti in corso...
    -> estrazione di ruby-1.9.2-p136.tar.bz2 con bsdtar in corso...
    ==> Rimozione dell'esistente directory pkg/ in corso...
    ==> Avvio di build() in corso...
    ==> Entrata nell'ambiente di fakeroot in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Avvio di package() in corso...
    ==> Rimozione dei dati superflui in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione degli altri file in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione delle pagine man ed info in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione dei simboli non necessari dai binari e dalle librerie in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Creazione del pacchetto in corso...
    -> Generazione del file .PKGINFO in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione del pacchetto in corso...
    xz: /tmp/yaourt-tmp-miche/aur-ruby-headers/ruby-headers/ruby-headers-1.9.2_p136-1-any.pkg.tar.xz: impossibile rimuovere: Successo
    Error: Makepkg non ha potuto costruire il pacchetto ruby-headers.
    [miche@bob tmp]$

Maybe you are looking for

  • Work center-Machine wise report

    Hi Guys, I have a work center for ex CNC in which i have taken 3 machines,in capacities i define the individual capacity for each machine & iam also able to split the capacity amoung the machines,Now if i want to take a report to give to the work cen

  • My Macbook A1181 won't startup. After turn on I get white screen with a folder sign with question mark in the center.

    My Macbook won't startup. After turn on, I get a white background screen with a folder icon (question mark inside) in the center. this icon even blinks The battery is charging.

  • ITunes COM SDK, Playlists and Delphi

    Hi there, I just started playing around with the COM SDK in Delphi and things are going well, except for that I seem to be unable to create a playlist of my own and populate it with files from my hard disk. According to the documentation I have IITPl

  • Duplicate Submit with one click / IndexOutOfBoundsException

    Hello all, When I submit a form to insert data to the database with one button click, the form has been submitted twice. I can see the behavoirs from my debug statements. Sometimes, two records are inserted to database. Sometimes, the "IndexOutOfBoun

  • Camera Raw Photolab Processing

    Why do drugstore photolabs always mess up my camera raw photo prosessing versus jpegs? There processing is dark and the greens come out brown. The photos look perfect on my moniter. I use Pro Photo color settings & 16 bit. Is it something I'm doing i