[Solved] Still learning and stuck with 'date'

Hi there, I thought it was about time I learned the fine art of shell scripting, but as the title states, I'm stuck.
A file with some text, one of which is this:
Download time: September 8 12:17:37
This I need to grap and convert to a computer readable format, so that I may compare it with another.
This shouldn't be too hard:
cat ~/unitinfo.txt | grep 'Download time: ' | cut -c16- | xargs date +"%B %-d %T" -d
But, when I execute this above, I get the error:
date: extra operand '8'
I've tried various variations, but nothing seems to make a difference, all thought the format is a perfect match when I get 'date' to print it.
Please advice and best regards.
Last edited by zacariaz (2012-09-09 10:17:14)

Just for the fun of it, if you care to comment on my progress so far:
unitinfo.txt:
Current Work Unit
Name: Gromacs
Tag: -
Download time: September 8 12:17:37
Due time: September 12 12:17:37
Progress: 25% [||________]
fah.sh:
#!/bin/bash
dueTime="$(date +%s -d "$(grep 'Due time: ' ~/unitinfo.txt | cut -c11-)")"
downloadTime="$(date +%s -d "$(grep 'Download time: ' ~/unitinfo.txt | cut -c16-)")"
currentTime="$(date +%s)"
progress="$(grep 'Progress: ' ~/unitinfo.txt | cut -c11-c12 | sed 's/ *$//')"
Now that I look at it again, am I correct that
sed 's/ *$//'
might as well be
sed 's/ $//'
In any case, there a long way to go.
Last edited by zacariaz (2012-09-09 22:20:45)

Similar Messages

  • Round and Trunc with dates

    Can i get the examples for Round and Trunc with dates?

    Hi Rahul,
    Check out this workout by Tom Kyte on TRUNC and ROUND -
    http://www.oracle.com/technetwork/issue-archive/2012/12-sep/o52sql-1735910.html
    Dont skip even a single line of it. Really useful.
    My little workout :
    Ranit>> select
      2  round(123.444) r1,
      3  round(123.999) r2,
      4  trunc(123.444) t1,
      5  trunc(123.999) t2
      6  from
      7  dual;
            R1         R2         T1         T2                                                                                                                                                                                
           123        124        123        123                                                                                                                                                                                
    Ranit>> select
      2  round(123.444,2) r1,
      3  round(123.999,2) r2,
      4  trunc(123.444,2) t1,
      5  trunc(123.999,2) t2
      6  from dual;
            R1         R2         T1         T2                                                                                                                                                                                
        123.44        124     123.44     123.99                                                                                                                                                                                
    Ranit>> select
      2  round(123.1234,2) r1, -- "Rounds upto 2 Decimal places"
      3  round(123.1266,2) r2, -- "Rounds upto 2 Decimal places"
      4  trunc(123.1234,2) t1, -- "Keeps only 2 decimal places and Truncates the rest"
      5  trunc(123.1266,2) t2  -- "Keeps only 2 decimal places and Truncates the rest"
      6  from
      7  dual;
            R1         R2         T1         T2                                                                                                                                                                                
        123.12     123.13     123.12     123.12                                                                                                                                                                                
    --"Note the difference in R2 andT2 values : In R2 there's a data round-off done but in T2 it is simple cut-off of extra decimal part"HTH
    Edited by: ranit B on Jan 26, 2013 7:24 PM

  • I bought a ipone5s in dubai and no one informed me that the facetime is disabled on all phones sold in UAE.i am now in india and stuck with a iphone5s with no facetime.isnt tht a shame??shouldnt the feature be availabe out of uae?

    i bought a ipone5s in dubai and no one informed me that the facetime is disabled on all phones sold in UAE.i am now in india and stuck with a iphone5s with no facetime.isnt tht a shame??shouldnt the feature be availabe out of uae?

    Unfortunately, FaceTime has been banned by the Middle Eastern governments so once you have purchased an iPhone from a Middle Eastern country such as the UAE without FaceTime on it, then you can never get FaceTime on that phone.
    If you want FaceTime on your phone, you will have to buy a new phone from a country that allows FaceTime such as the US or the UK.

  • How to solve delay in a program with data aquisition and processing

    Hello, I am a starter in Labview programing. I am working on a system which contains a roller, a piston and a A/D cart which is from Data Translation Inc (DT304). I am using labview to get speed data of the roller (which is voltage first then be converted into speed) from Analog Input Channels, and then using Analog Output Channels to control the friction force being appylied to the roller by using a piston.
    I am using a Waveform Chart to show the speed of roller. However, as I am adding more components to the program, I always get delay in the speed display and also the output control of the piston. Also, as I spent more time using the program eg. from morning to night, it became slower too.
    My question is, how does labview store data and how are the data been stored and released in the buffer.Is it because I am loading too much data in the buffer so that it became slower? And also how to solve these delays?
    I am using the "save to file" function to write data to a ".lvm" file, but I did some changes to the saving by using a button to enable and disable saving. So I don't think the problem is because I am always saving the data into a file.
    Thank you very much.
    Jessie

    I'm betting it's two things:
    1. Program Architecture
    and 2. Dynamically resizing arrays.
    With the program architecture... if you have one do-while loop that acquires data from teh DAQ, processes it, opens/indexes/writes/closes a file, then comes back around... as your arrays and files increase in size, the loop is going to take longer to execute.  A Producer-Consumer loop (a good tutorial on them can be found here) has one loop that acquires data and stuffs the data into a queue.  This will buffer the data while it's in transition between acquisition and processing.  A second loop in parallel takes data in from the queue, processes it, then comes back around.  The two loops operate independently of each other, so even if the consumer loop takes longer as the files or math gets more complex, the producer loop continues to run full speed.
    Second is the arrays.  Every time you append data into an array, LabVIEW has to make a copy of the data that's in the array.  If you append small amounts of data to an array over and over and over again, eventually LabVIEW is going to be copying very large amounts of data over and over and over again.  The producer-consumer architecture can alleviate this problem.

  • Start up and stuck with the flashing color (red green blue yellow...)

    I just bought Macbook pro(My first time with Mac product) today, and when i unbox the MBP it was have a good start everything is ok, than I test the DVD drive to make sure it work or not, than i put the VCD to it. it was stuck (with the flashing color). than i dont'know what to do. I press the shutdown button around 10s the pc is shutdown...I open it again and eject the VCD, than I was stuck with flashing color (red green blue yellow...) i have try to restart many time buy pressing the button but still the same. than i keep it away for about 1hour than I open it again It was WORKING AGAIN the same as I first started, than I restart, but the same problem happen again (flashing color (red green blue yellow...).
    1. I have tried to boot from DVD that come with the MBP holding C but nothing happen
    2. I have tried to reset PRAM (Command-Option-P-R) not work
    So what wrong with that?
    Could anyone help me to fix this out?
    Thank you

    Solida wrote:
    the flashing is the Macbook pro screen it Flashing Loop, sometime red, than suddenly change to green than yellow than loop again and again.
    Notice when it first start up I see APPLE LOGO than the waiting animation round. than the random screen flashing color is happened.
    Three options:
    1. Call AppleCare.
    2. Go to an Apple Store.
    3. Go to an Apple Authorized Service Provider (AASP)

  • Stuck with date from IPTC core

    I usually change date from template when not corresponding to real one, and succesfully. Now doesn't work, daTE  is stuck at date at IPTC core, and I can actually change from there but I prefer to change from template
    (small icon top right)
    I did tools/purge cache for folder, and restarted B holding down option key.
    Also in accounts language and tex>region, I am in correct country
    Problem is I dont like date format from the IPTC core, I prefer 6/6/11 to 11-06-06
    thanks

    1.   The question about batch rename was not about changing the date, but changing the format. In other words, if I select a picture,
    select DDMMYYYY, click on "rename" and nothing changes in the date order, how do you use it if you want to actually change the date order?
    If you read my previous post, it says: the option of date format is interesting, but I can't apply it. In other words, it doesn't work.
    Just try it: select a picture in B, give it a date format different from 2011-06-19 which is the (for me at least) default format, click on rename, and NOTHING changes, that's why I was wondering what else I had to click on.
    2.   As far as changing the date created, yes, I need that: If I have pictures taken in Libya in june 2011, during a fight in Misrata, and
    all the world knows that Misrata had the Arab spring in 2011 and they show may 2012, which is the day that I fixed them or
    who knows why, that is ridiculous, right?
    So I have to change the date back. Can somebody tell me how that happened, or I will make a post for that.
    Pease keep the 2 issues separate.

  • FTPS settings Difference between control and control with data

    Hi guys,
    Just a very quick question please. When doing FTPS there are two options
    1) control
    2) control with data
    Can anyone explain what's the difference between the two?
    regards

    Hi,
    FTPS (FTP Using SSL/TLS) for Control Connection
    The FTP control connection is protected using TLS/SSL (Transport Layer Security/Secure Sockets Layer). File transfer is unencrypted.
    FTPS (FTP Using SSL/TLS) for Control and Data Connection
      All communication with the FTP server is encrypted and uses TLS/SSL.
    Regards,
    Raj

  • Can Oracle run in real time OS(such as PSOS) and communicate with data server by OCI?

    Hi, all!
    i have a question to get your help! now my oracle client running in SUN solaris communicate with oracle data server by OCI(oracle call interface). In future, my client system will port to embeded system that will use real time OS, such as PSOS, so i'm afraid that is OCI communicating with data server ok in PSOS environment??? Is there a special driver or OCI lib for PSOS?
    thanks very much!!!
    null

    I have no idea which platforms the Oracle client has been ported to. If there exists an Oracle client for PSOS, then you should have no problem with OCI there. If there's no Oracle client for PSOS, then you won't be able to make OCI calls.
    Regardless, this probably is a question better addressed to Oracle sales rather than to an ODBC forum.
    Justin

  • Hierarchical tree and interacting with data block

    I have a hierarchical tree that is used to pick records that are shown in another data block. I have a list item in the data block that changes the arrangement of nodes in the hierarchy. My problem is that after the update, I select the node, but the wrong data shows up in the other data block (eg. node x is selected, x becomes a child of y, the data for y still appears in the data block even though node x is selected in the tree). There seems to be something wrong with my triggers, but I can't figure out what.
    Here are the triggers that I am using.
    In the tree block, tree item:
    -WHEN-TREE-NODE-SELECTED
    set_block_property(v_data_block, default_where, 'global_id = ' | | v_org);
    go_block(v_data_block);
    execute_query;
    In the data block, list item
    -WHEN-LIST-CHANGED:
    -- find the tree node and select it
    node := Ftree.Find_Tree_Node(...)
    Ftree.set_tree_selection(v_tree,node,Ftree.SELECT_ON);
    -- update the data block to show data from the selected node
    set_block_property('GREENPAGES_DIR', default_where, 'global_id = ' | | :greenpages_dir.global_id);
    go_block('GREENPAGES_DIR');
    execute_query;
    Thanks for your help.

    hi
    i didn't try doing it.. i assume the the reasons can be:
    1.check the value of the variable 'v_org' because 'w-t-n-s' trigger fires twice..
    2. 'w-t-n-s' trigger is not firing eventhough u select it through ur code in the list item trigger.. if not firing, use execute_trigger('w-t-n-s') and remove the last set of code (update section) from the list item trigger..(assuming 'GREENPAGES_DIR' = v_data_block)
    hope this helps u
    ajith

  • UI: Opening Sales Order screen and loading with data

    Hi,
    I'm currently using the SDK to develop a new screenin SBO.  From my new screen I need to display the sales order screen with an order loaded into it. 
    I currently open the screen using the ActivateMenuItem methid, then use the sendKeys method to try and change to find mode, pass in the sales order number and press enter to start the search.
    The code is this:
    moSBOApp.ActivateMenuItem("2050");
    moSBOApp.SendKeys("(^f)");
    moSBOApp.SendKeys("123");
    moSBOApp.SendKeys("{ENTER}");
    But the form doesn't seem to change modes, it just stays in "Add" mode.  Is there a better way of doing it?
    I've also tried putting code in the FORM_LOAD event for the sales order screen and try and change mode then, but I just get an "Invalid Form Mode" error
    Help!

    Ho Jon!
    The following snippet works fine for PO searching by number and date:
    SAPbouiCOM.Form          frmPurchOrd = null;
    int frmPOCount = 0;
    SAPbouiCOM.EditText     oOrdNum;
    SAPbouiCOM.EditText     oOrdDate;
    SAPbouiCOM.Item          oOrdOkButton;
    SBOApp.ActivateMenuItem("2305");
    // PO even opened
    for (int k=0; k<SBOApp.Forms.Count; k++)
         if (SBOApp.Forms.Item(k).Type == 142)
              frmPOCount++;
    frmPurchOrd     = SBOApp.Forms.GetFormByTypeAndCount(142, frmPOCount++);
    frmPurchOrd.Freeze(true);
    frmPurchOrd.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
    oOrdNum          = (SAPbouiCOM.EditText)frmPurchOrd.Items.Item("8").Specific;
    oOrdNum.String     = OrdNum;
    oOrdDate     = (SAPbouiCOM.EditText)frmPurchOrd.Items.Item("10").Specific;
    oOrdDate.String     = OrdDate.ToShortDateString();
    oOrdOkButton     = (SAPbouiCOM.Item)frmPurchOrd.Items.Item("1");
    oOrdOkButton.Click(SAPbouiCOM.BoCellClickType.ct_Regular);
    frmPurchOrd.Freeze(false);
    it's too easy to implement it for Sales Order

  • Subscribe event and processing with data

    Hi.
    We made a portal component with DynPageWithJSP model and this program subscribe event from other iview.
    Other iview trigger event and store Data using data bag.
    When event trggered my portal component, load data and I wan to process with this data in PAI routine.
    So, Here is JSP file.
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="SalesOrderBean" scope="application" class="com.sap.training.portal.SalesOrderBean" />
    <script>
    function eventFired () {
         var Cust_No = EPCM.loadClientData('urn:com.sap.training.portal','Cust_No');
         var Sales_Org = EPCM.loadClientData('urn:com.sap.training.portal','Sales_Org');
         alert(Cust_No + " " + Sales_Org);
         var funcName = htmlb_formid + "_getHtmlbElementId";
         func = window[funcName];
         var ipField1 = eval(func("Cust_No"));
         ipField1.setValue(Cust_No);
         var ipField2 = eval(func("Sales_Org"));
         ipField2.setValue(Sales_Org);
         var form = document.all(htmlb_formid);
         form.submit();
    EPCM.subscribeEvent('urn:com.sap.training.portal',
                        'SalesOrder',
                        eventFired);
    </script>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId">
              <hbj:inputField id="Cust_No" type="string" maxlength="20" value="" jsObjectNeeded="true" >
                 <% Cust_No.setVisible(false);%>
              </hbj:inputField>
            <hbj:inputField id="Sales_Org" type="string" maxlength="20" value="" jsObjectNeeded="true" >
                 <% Sales_Org.setVisible(false);%>
            </hbj:inputField>
            <hbj:textView id="welcome">
                 <% welcome.setText("Hello, " + SalesOrderBean.getCust_No() + " from " + SalesOrderBean.getSales_Org()); %>
            </hbj:textView>              
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Above code, I checked portal compoent load data when event trigger. (in statement : alert(Cust_No + " " + Sales_Org);)
    After then, I try to access that data using following code.
        public void doProcessAfterInput() throws PageException {
              InputField myInputField1 = (InputField) getComponentByName("Cust_No");
              if (myInputField1 != null) {
                   this.Cust_No = myInputField1.getValueAsDataType().toString();
              InputField myInputField2 = (InputField) getComponentByName("Sales_Org");
              if (myInputField2 != null) {
                   this.Sales_Org = myInputField2.getValueAsDataType().toString();
              IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
              IPortalComponentContext myContext = request.getComponentContext();
              SalesOrderBean myNameContainer = (SalesOrderBean) myContext.getValue("SalesOrderBean");
              myNameContainer.setCust_No(Cust_No);
              myNameContainer.setSales_Org(Sales_Org);
    I can't acess it.
    Is there any problem ?
    Welcome to any comment.
    Regards, Arnold

    hi arnold
    try placing submit button...and use onClientClick="eventFired" in jsp file...try this out...
    hope it works fine...
    regards,
    purush

  • [SOLVED] Subversion, xinetd, and "Malformed network data"

    Hi,
    I currently have a Subversion 1.5.2 server running through svnserve + xinetd. When I attempt to connect to my subversion server, however, I get:
    svn: Malformed network data
    Below is the contents of my xinetd config for subversion:
    service svn
    flags = REUSE
    socket_type = stream
    wait = no
    user = svn
    group = svn_group
    server = /usr/bin/svnserve
    server_args = -i -r /srv/svn/repo
    log_on_failure += USERID
    disable = no
    This is located in the file: /etc/xinetd.d/svn
    I run the following command only to find that it fails:
    $ svn ls svn://localhost/myrepository
    svn: Malformed network data
    I've checked my xinetd log, however I see no failure. I can even put a completely bogus repository URL into SVN and it'll still give the same error:
    $ svn ls svn://localhost/iosudohslkj2223oijosdijfaksjdlfkj
    svn: Malformed network data
    Anyone have any idea what could be causing this?
    Last edited by void.pointer (2008-10-15 13:42:50)

    I found out via telnet that one of my directories didn't have execute permission, so it couldn't step into the child directories.

  • [Solved]Updated system, and dealing with glibc issue.

    I neglected to update/use Arch for quite some time, and decided to last night. I quickly encountered problems and I've read https://www.archlinux.org/news/filesyst … equired-1/, https://www.archlinux.org/news/the-lib- … a-symlink/, https://www.archlinux.org/news/fontconf … -required/, http://allanmcrae.com/2012/07/updating- … e-install/, and many threads about issues with filesystem and/or glibc.
    First, I followed the instructions to resolve the issue with fontconfig.
    <read various threads>
    Then, I landed here: https://wiki.archlinux.org/index.php/De … iki:usrlib. I installed glibc-2.16.0-1-x86_64 using the instructions provided. IIRC, I was still experiencing conflicts with filesystem. I came across a thread where a user stated that instructions from Allan McRae's blog (from the link at the top) allowed him to upgrade his system. I tried it out, and I got around the filesystem issue as well as the issue with dependencies linked to tzdata, etc. My issue now lies with the pacman -Su step:
    [asdf@asdf ~]$ sudo pacman -Su
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): glibc-2.16.0-5
    Total Installed Size: 37.63 MiB
    Net Upgrade Size: 0.05 MiB
    Proceed with installation? [Y/n] y
    (1/1) checking package integrity [###############################] 100%
    (1/1) loading package files [###############################] 100%
    (1/1) checking for file conflicts [###############################] 100%
    error: failed to commit transaction (conflicting files)
    glibc: /lib exists in filesystem
    Errors occurred, no packages were upgraded.
    Following Issue 2 under https://wiki.archlinux.org/index.php/De … iki:usrlib, I entered
    $ grep '^lib/' /var/lib/pacman/local/*/files
    . The output was:
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/security/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/security/pam_ck_connector.so
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/basic.target.wants/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/basic.target.wants/console-kit-log-system-start.service
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-daemon.service
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-restart.service
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-start.service
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-stop.service
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/halt.target.wants/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/kexec.target.wants/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/kexec.target.wants/console-kit-log-system-restart.service
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/poweroff.target.wants/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/reboot.target.wants/
    /var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/ld-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/ld-linux-x86-64.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libBrokenLocale-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libBrokenLocale.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libSegFault.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libanl-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libanl.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libc-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libc.so.6
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcidn-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcidn.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcrypt-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcrypt.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libdl-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libdl.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libm-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libm.so.6
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libmemusage.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnsl-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnsl.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_compat-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_compat.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_db-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_db.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_dns-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_dns.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_files-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_files.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_hesiod-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_hesiod.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nis-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nis.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nisplus-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nisplus.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpcprofile.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpthread-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpthread.so.0
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libresolv-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libresolv.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/librt-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/librt.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libthread_db-1.0.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libthread_db.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libutil-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libutil.so.1
    /var/lib/pacman/local/hal-0.5.14-6/files:lib/
    /var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/
    /var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/rules.d/
    /var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/rules.d/90-hal.rules
    /var/lib/pacman/local/lib32-glibc-2.14-5/files:lib/
    /var/lib/pacman/local/lib32-glibc-2.14-5/files:lib/ld-linux.so.2
    /var/lib/pacman/local/ntfs-3g-2012.1.15-4/files:lib/
    Being a newb, I didn't want to do something stupid, so I didn't take any action here..
    I proceeded on with trying
    find /lib -exec pacman -Qo -- {} +
    The output was:
    error: cannot determine ownership of directory '/lib'
    /lib/libutil.so.1 is owned by glibc 2.16.0-1
    /lib/libnsl.so.1 is owned by glibc 2.16.0-1
    /lib/libnss_compat-2.16.so is owned by glibc 2.16.0-1
    /lib/libSegFault.so is owned by glibc 2.16.0-1
    /lib/ld-linux.so.2 is owned by lib32-glibc 2.14-5
    /lib/ld-2.16.so is owned by glibc 2.16.0-1
    /lib/libpthread.so.0 is owned by glibc 2.16.0-1
    /lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-1
    /lib/libthread_db-1.0.so is owned by glibc 2.16.0-1
    /lib/librt-2.16.so is owned by glibc 2.16.0-1
    /lib/libnss_files.so.2 is owned by glibc 2.16.0-1
    error: cannot determine ownership of directory '/lib/ufw'
    error: No package owns /lib/ufw/user6.rules.pacsave
    error: No package owns /lib/ufw/user.rules.pacsave
    error: cannot determine ownership of directory '/lib/udev'
    error: cannot determine ownership of directory '/lib/udev/rules.d'
    /lib/udev/rules.d/90-hal.rules is owned by hal 0.5.14-6
    /lib/libnss_hesiod-2.16.so is owned by glibc 2.16.0-1
    /lib/libnss_dns.so.2 is owned by glibc 2.16.0-1
    /lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-1
    /lib/libm.so.6 is owned by glibc 2.16.0-1
    /lib/libnss_files-2.16.so is owned by glibc 2.16.0-1
    /lib/libc-2.16.so is owned by glibc 2.16.0-1
    /lib/libBrokenLocale.so.1 is owned by glibc 2.16.0-1
    /lib/libdl.so.2 is owned by glibc 2.16.0-1
    /lib/libutil-2.16.so is owned by glibc 2.16.0-1
    /lib/libBrokenLocale-2.16.so is owned by glibc 2.16.0-1
    /lib/libpthread-2.16.so is owned by glibc 2.16.0-1
    /lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-1
    /lib/librt.so.1 is owned by glibc 2.16.0-1
    /lib/libnss_nis-2.16.so is owned by glibc 2.16.0-1
    /lib/libc.so.6 is owned by glibc 2.16.0-1
    /lib/libcrypt-2.16.so is owned by glibc 2.16.0-1
    /lib/libresolv-2.16.so is owned by glibc 2.16.0-1
    /lib/libnss_db.so.2 is owned by glibc 2.16.0-1
    /lib/libcidn.so.1 is owned by glibc 2.16.0-1
    /lib/libresolv.so.2 is owned by glibc 2.16.0-1
    /lib/libmemusage.so is owned by glibc 2.16.0-1
    /lib/ld-linux-x86-64.so.2 is owned by glibc 2.16.0-1
    error: cannot determine ownership of directory '/lib/security'
    /lib/security/pam_ck_connector.so is owned by consolekit 0.4.5-2
    /lib/libanl-2.16.so is owned by glibc 2.16.0-1
    /lib/libnss_compat.so.2 is owned by glibc 2.16.0-1
    /lib/libcidn-2.16.so is owned by glibc 2.16.0-1
    /lib/libm-2.16.so is owned by glibc 2.16.0-1
    /lib/libcrypt.so.1 is owned by glibc 2.16.0-1
    error: cannot determine ownership of directory '/lib/systemd'
    error: cannot determine ownership of directory '/lib/systemd/system'
    /lib/systemd/system/console-kit-daemon.service is owned by consolekit 0.4.5-2
    /lib/systemd/system/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
    error: cannot determine ownership of directory '/lib/systemd/system/kexec.target.wants'
    /lib/systemd/system/kexec.target.wants/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
    error: cannot determine ownership of directory '/lib/systemd/system/basic.target.wants'
    /lib/systemd/system/basic.target.wants/console-kit-log-system-start.service is owned by consolekit 0.4.5-2
    error: cannot determine ownership of directory '/lib/systemd/system/poweroff.target.wants'
    /lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
    error: cannot determine ownership of directory '/lib/systemd/system/halt.target.wants'
    /lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
    error: cannot determine ownership of directory '/lib/systemd/system/reboot.target.wants'
    /lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
    /lib/systemd/system/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
    /lib/systemd/system/console-kit-log-system-start.service is owned by consolekit 0.4.5-2
    /lib/libdl-2.16.so is owned by glibc 2.16.0-1
    /lib/libnsl-2.16.so is owned by glibc 2.16.0-1
    /lib/libnss_nis.so.2 is owned by glibc 2.16.0-1
    /lib/libnss_dns-2.16.so is owned by glibc 2.16.0-1
    /lib/libpcprofile.so is owned by glibc 2.16.0-1
    /lib/libnss_db-2.16.so is owned by glibc 2.16.0-1
    /lib/libanl.so.1 is owned by glibc 2.16.0-1
    /lib/libthread_db.so.1 is owned by glibc 2.16.0-1
    Again, I'm not sure what to do here.
    On an irrelevant note, a red flag went up earlier. By some means, it appears I messed up Arch. Is there a chance I can fix the issue with the kernel or is the best option a reinstall?
    (482/563) upgrading linux [################] 100%
    >>> Updating module dependencies. Please wait ...
    depmod: ERROR: could not open directory /lib/modules/3.6.10-1-ARCH: No such file or directory
    depmod: FATAL: could not search modules: No such file or directory
    >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    ==> Building image from preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
    ==> Building image from preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
    error: command failed to execute correctly
    (498/563) upgrading nvidia [################] 100%
    depmod: ERROR: could not open directory /lib/modules/3.6.10-1-ARCH: No such file or directory
    depmod: FATAL: could not search modules: No such file or directory
    If your card is from the 7xxx series or earlier, install nvidia-304xx
    [asdf@asdf ~]$ ls -ld /lib
    drwxr-xr-x 6 root root 4096 Dec 22 15:11 /lib
    [asdf@asdf ~]$ mkinitcpio -p linux
    ==> Building image from preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
    ==> Building image from preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
    Thanks in advance.
    Last edited by illusory (2012-12-24 00:24:47)

    I checked out https://wiki.archlinux.org/index.php/Initramfs, and I'm not sure what to do. I rebooted a few times in attempt to get things going. I'm assuming I need to start by logging in to the live CD as root and mounting the sda in which Arch is installed? I don't know how to mount root nor know the complete title for the Arch partition (sda x,x). Sorry for the hassle.
    Edit: Found https://wiki.archlinux.org/index.php/Ch … partitions. Be back in a bit.
    I currently have the temporary filesystems mounted, chrooted, and am in bash.
    # mkinitcpio -p linux
    doesn't work. I tried
    mkinitcpio -g ..... 3.6.10-1-ARCH
    and I received something about 3.6.10 and a module directory.
    Last edited by illusory (2012-12-23 23:26:00)

  • Crontab, mkdir and mv with dates??

    Message moved.
    I have a crontab set up to move files every friday to a folder on admins desktop. That works just fine.
    What I want to be able to do is add to the crontab to make a folder with the date and have the files transfer into that folder that was just created.
    I have tried this command, but terminal just hangs..
    mkdir /Volumes/.../Users/.../Desktop/5\ 2/`date '+%m-%d-%y'`; mv /Volumes/.../Users/.../Desktop/1.doc /Volumes/.../Users/.../Desktop/5\ 2/`date '+%m-%d-%y'
    The mkdir works, but when i want to mv, terminal hangs.
    Any ideas?

    Just to explain that, within any shell command you can embed another shell command within backticks. This has the similar effect to parentheses in mathematics - it runs that sub-command first and substitutes the output of that sub-command in the main command.
    In the case of your mkdir command, the shell first runs the date '+%m-%d-%y' command since it's enclosed in backticks, then substitutes that in the mkdir command.
    Without the trailing backtick the shell can't identify where the sub-command finishes, and therefore fails.

  • [Solved] Several installs and issues with DHCP issue every time.

    Edited: more concise information!
    Hi folks,
    I was using Arch fine for months but decided to reinstall it fresh at the new year, but since then I have been plagued by connection issues. I install Arch and follow many of the tips found in these Wikis to set it up how I like then install preload and readahead.
    Post-Installation Tips
    http://wiki.archlinux.org/index.php/Pos … ation_Tips
    - LCD filtered fonts
    - Disable IPv6 (I use Chorus/NTL and they have a tip for improving Firefox that disables IPv6, so I think that this is not to blame)
    Laptop
    http://wiki.archlinux.org/index.php/Laptop
    - Battery state monitoring utilities (acpi)
    - Laptop-mode-toold
    - Powernowd
    Maximising Performance
    http://wiki.archlinux.org/index.php/Max … erformance
    - Swapiness
    - Mount /tmp to RAM
    My internet connection works fine, even when rebooting, but later I turn on my computer and WICD or networkmanager fails on "obtaining IP address. I really think that there is something in one of these tips that is causing this problem, but I am at a loss as to what. Like I say, I was using it happily for many months before these current issues. The only thing I did differently was systematically set up my computer with all the tips detailed above, where as before, I collected these tips over a period of time and did not do them all straight after installation. I have tried rolling back the changes and this has not fixed the issue.
    I have had this issue over many reinstalls, using networkmanager or WICD and each time I was hoping that I was doing something wrong.  I have an Ubuntu and work Windows laptop that both work fine, so I don.t think it is anything to do with the connection itself.
    I am not sure what information you would need so I thought I would post both of these files. If you would like anything else, give me a shout and i can post it.
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_GB.UTF-8"
    HARDWARECLOCK="UTC"
    TIMEZONE="Europe/Dublin"
    KEYMAP="uk"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(acpi-cpufreq vboxdrv coretemp)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="laptop"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    #Static IP example
    #eth0="dhcp"
    eth0="dhcp"
    INTERFACES=(eth0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(preload syslog-ng hal wicd @powernowd @laptop-mode @fam @alsa @sensors @readahead-list)
    /etc/resolv.conf
    # Generated by dhcpcd
    # /etc/resolv.conf.head can replace this line
    # /etc/resolv.conf.tail can replace this line
    Thanks for your help,
    Scott
    Last edited by ScottArch (2010-02-14 12:30:25)

    Hey Scott!
    I don't know if it is helpful in any way but I have a similar problem with my desktop PC.
    I have two ethernet controllers installed and somtimes I had a Ip address assigned and sometimes I didn't.
    One which is connected to the router and a 2nd one I use sporadically to connect additional computers.
    The dhcpcd would fail to load even if I followed steps suggested from other forum members.
    My temporary fix was to run:
    # dhcpcd
    manually.
    If this helps you might consider adding "dhcpcd" at the end of
    /etc/rc.d/network
    I know it's not really a fix but it helps me to get a working connection whoch otherwise would fail - or work if lucky but i don't like lucky with network/internet ^^

Maybe you are looking for

  • DB13 - Check DB does fails

    I'm getting the following error when I run CHECK DB in DB13: Job started                                                                                Step 001 started (program RSDBAJOB, variant &0000000000182, user ID MCCARTJX)                 Exec

  • Accounting documents not generated in MIGO for Acct. ***.Category "A"

    Hi Friends, I have created a PO for Asset procurement. I have selected acct. ***. category as "A" in the PO. When I do the GR, the material document is getting generated but without any accounting document. Accounting docs are getting generated for o

  • To Save in Lookout the State file from the application

    I need that the program loads the variable values when start up like when it was written or designed. Also, I need that a autotuning process in the application loads and saves by program the values found for 4 valuables, so when the application is st

  • Help with downloading camera raw 8

    Where do I find the webpage to download camera raw version 8?

  • Ethernet slow to connect after waking from sleep

    Since installing Lion (and updating to 10.7.1) on my 2008 24" iMac I have noticed that after waking from sleep the internet connection takes about 10 seconds to restore. I have reset the SMC and PRAM and performed a safe boot (in case this helped) bu