[SOLVED]Search inside packages for future actions

Hi!
I have had some troubles when I downloaded a lot of fonts and used makefontpkg script for making installation packages for them. The problem was that all files created by makepkg was automatically moved to the predefined folder and got mixed with other packages there. Then, I decided to make a new folder for them and for an easy way to move all of the font install packages I made a script.
Here is just an example of it:
#!/bin/bash
for InFile in *.xz ;
do GetDescription=$(tar -xOf $InFile .PKGINFO | grep 'pkgdesc = ' | grep font | awk '{print $1}' );
if [ "x"$GetDescription != "x" ] ;
then
echo This $InFile package contains "font" in the description;
### mv $InFile ./FontInstallPackages
fi;
done;
I hope this will be useful for someone
Last edited by Andy_Crowd (2014-04-09 19:42:00)

I would suggest neither the caption nor the description. They each have their own purpose and overloading them is not necessary.
Personally, I prefer explicitly building the references of the controls I want into an array and passing that array to a subVI. See here for a simple example:
That example uses the OpenG VI internally, but you can easily replace it with the NI VI if you flatten the variant to a string. The same concept can apply to saving to a DB. This RCF plugin allows quickly building an array of references for selected controls.
Another option which is more elegant than using the description is assigning a tag to each control you want to edit. This is more elegant, but requires building an edit time tool which will allow you to edit tags on controls, since the only way of accessing them today is through a reference to the object which has the tag. You can build such a tool, but it requires a bit of know-how. This VI (basically a floating tool which allows you to manipulate selection on the VI you're currently editing) will get you some of the way there and also show you where the tag VIs are.
Try to take over the world!
Attachments:
Floating Tool.vi ‏13 KB

Similar Messages

  • How to disable spotlight searches inside packages

    Hi,
    I tagged all my files inside my document folder, now I'd like to create and save a smart folder searching for all the untagged files, just in case I create or move a file to that folder without tagging it first.
    The problem is that I have several files, which are packages with other files in them (created with Scrivener, Devonthink, OmniOutliner...). These other files aren't tagged (and I don't need nor want to tag them) so they are showed in my spotlight search.
    I can't exclude the folders containing these files in spotlight preference, since there are a lot of them and I often create new files of these kinds.
    I would like to tell spotlight not to search inside packages. Is that possible?
    thanks in advance,
    pietro

    You can't remove it so as it is fixed in the OS of the phone.

  • [SOLVED] search just package name (not description) with yaourt

    Is there a way to search just package names (not package descriptions) with yaourt or pacman?  I'm imagining something like this:
    $ yaourt  -Ss  --pkgname-only  xterm
    Thanks!
    Last edited by partner55083777 (2010-02-03 16:30:43)

    My question still stands as to how I can search just package names.  If it is using another program other than yaourt or pacman, that is okay.
    "yaourt -Ss SEARCH_STRING" has been working as stated in the documentation for me (with yaourt-0.9.2.6).  It will return all packages that have SEARCH_STRING in either the package name or package description.
    Here are the first three results when running this command:
    $ yaourt -Ss emacs
    extra/emacs 23.1-3 [installed]
         The Emacs Editor
    extra/snd 10.1-1
         Snd is the emacs of sound editor
    extra/texmacs 1.0.7-3
         GNU TeXmacs is a free scientific text editor, which was both inspired by TeX
         and GNU Emacs. WYSIWYG editor TeX-fonts and CAS-interface (Giac, GTybalt,
         Macaulay 2, Maxima, Octave, Pari, Qcl, R and Yacas) in one.
    $
    It looks like it works as specified in the man pages:
    -s, --search <'regexp'>
               This will search each package in the sync databases for names or descriptions that match regexp.
               When you include multiple search terms, only packages with descriptions matching ALL of those terms will be returned.
    Last edited by partner55083777 (2010-02-02 22:10:24)

  • [SOLVED] searching a package with pacman/yaourt

    Sometimes i encounter a crash of kmix application on OS bootup. When i try submitting a bug report, it says that "The generated crash information is probably not useful'. The needed packages say i should be having, among others, 'libQtGui.so.4'
    How do i search which package provides this file? I have tried a few options with -Q and -S, but that doesn't seem to work. Any pointers?
    Last edited by njathan (2012-03-17 10:13:03)

    njathan wrote:
    Thanks much!
    [edit] BTW i could not find pkgutils, but pkgtools
    Sorry, pkgtools is the one

  • Is it possible to have change pointers captured in BDCP2 for future actions in e.g. PA30 or PA40

    Hi,
    As the subject says, is it somehow possible to get future actions done to an employee to be captureas a change pointer in the BDCP2 table.
    Actions valid from the date when they are done are nicely captured in the table but e.g. if a hiring action is done today that will be valid in e.g. 5 days, this is not captured as a change pointer in BDCP2 table.
    Any idea if this is possible to get this to work somehow or if it's even supported by SAP.
    Currently we're on ECC 6.0
    Br,
    Jonas

    Note that if you invoke Full Screen Preview (F) from Grid Mode, then Cycle Info Display (I) doesn't work at all, no matter how many times you press "I":
    http://feedback.photoshop.com/photoshop_family/topics/cylce_info_display_doesnt_always_wor k_in_full_screen_preview
    It appears that Adobe originally designed Full Screen Preview to be a special viewing mode of the underlying mode.  So if you invoke Full Screen Preview from Grid Mode, Cycle Info Display doesn't work and the arrow keys work with selections just as they do in regular Grid Mode, not as in Loupe Mode.  But according to employee Becky Sowada, Adobe is reconsidering this design; see the 9/17 thread in this topic:
    http://feedback.photoshop.com/photoshop_family/topics/full_screen_preview_works_incorrectl y_with_selections

  • Searching inside and for a modem For my G4

    Hello,
    What I need to know in looking if my G4 Power Mac tower Digital Audio version, is the modem card installed flat horizontal or upright vertical in the standard slots on the main circuit board.
    I need a modem for my G4
    I am also under the impression that I will need to upgrade my OS 10.4 to a higher version for a modem. Can I download this from the Mac sight using a DSL line?
    My new hand me down G4 Power mac that I just received needs a modem. As one of our fellow Mac user described that the metal cube in the top right hand corner of the top back of my Mac G4 is a modem filter and not the modem. But has the standard telephone plug for a dial up modem. So far my AOL software detects no Modem as does the networking find feature on G4 computer itself
    <Post Relocated and Edited by Moderator>
    Patrick

    Hi Again Patrick!
    Review My Reply, in your other Related Topic.
    ali b

  • I was offered a free trial and it does not work, I filled out name and home address for future action i.e. full member ship but still trial does not do enough to print my pdf to word converstion and did not allow me to print once ready!!!

    I was using adobe reader with no problems but when I went to print an pdf file to a word document it did not work and adobe wanted to charge me approx. $ 25.00. I do not understand because I just installed this adobe program, how can I convert a pdf file to a word file and then print it out?

    The usual cause of a problem such as you describe is this.
    1. I download Adobe Acrobat Pro free trial.
    2. I install the trial (or not).
    3. But then I run Adobe Reader
    4. I try to use Export PDF or Create PDF in Adobe Reader.
    5. Nothing has changed, these still need a subscription.
    If this is the case, make sure you use Acrobat. It does NOT change Reader, it's entirely separate from it.

  • Using a package for solving many mutating tables.....

    Hi,
    I need to solve more than one cases of mutating tables .. following the 'traditional' way described in:
    http://asktom.oracle.com/tkyte/Mutate/index.html
    For these cases , do you recommend me to use an individual package for each case ... or one to cover all cases (with different variables and PL/SQL tables... of course)....???
    Many thanks ,
    Simon

    No , I meant that there are cases on different
    tables....Then there is no other possibility but to create different packages.
    When you write "use api's"... can you give some more
    details....?????I mean to have a package to do all your dml in nice clean functions and procedures like procedure hire_employee, procedure fire_employee, function salary_including_commission and so on. Your procedures will include logic to validate all business rules. Then grant execute privileges on this package (api) to the users that should be able to work with employees and revoke all DML privileges on the table from anyone, even revoke the "CREATE SESSION" privilege from the schema owner when done installing to prevent direct access on the table.
    Now every DML action will be through your api and it's not possible to bypass constraint validation.
    Regards,
    Rob.

  • Search inside a package

    Hi.
    I have a question about searching.
    Is there any possibility to search inside a package (stored in the DB) for a string?
    The problem is, that we have many packages (not all programmed by us) and we want to write an overview about all user specified errors (rais_application_error) with error-number and -message.
    The manually method is, to search with SQL Developer each package for the string. But this would be very inefficient.
    Do you know any method to search (maybe via sqlplus?) inside all packages for a string?
    Thanks for answering.
    Best regards.

    I think it is not working. I've modified your query and here is the result i got --
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL>
    SQL>
    SQL> select distinct name  
      2   from all_source
      3   where type = 'PACKAGE BODY'  
      4   and owner = 'SCOTT'
      5   group by name     
      6   having count(instr(upper(text),'INSERT')) > 0
      7   order by name;
    NAME
    A1111
    AAA
    DB_OBJECT
    DEMO_MAIL
    PACK_TEST
    PKG
    SAT_PK
    SAT_PLSQL_TAB
    TABLE_OBJECT
    TEST_DSAT
    TEST_MAY2007
    NAME
    TEST_PKG
    USER_MGMT
    UTIL
    V_PKG
    15 rows selected.
    SQL>
    SQL>
    SQL>
    SQL> select text
      2  from all_source
      3  where type = 'PACKAGE BODY'
      4  and   owner = 'SCOTT'
      5  and   name = 'A1111';
    TEXT
    package body a1111
    is
      PROCEDURE FLUSH_TABLE(vi_table_name VARCHAR2)
      IS
        vn_table_name VARCHAR2(30);
        str varchar2(100);
      BEGIN
        vn_table_name := UPPER(LTRIM(RTRIM(vi_table_name)));
        str := 'TRUNCATE TABLE '||vn_table_name;
        execute immediate(str);
      END FLUSH_TABLE;
    TEXT
    end;
    12 rows selected.Or, may be i'm missing anything. Can you please share your thought regarding this?
    Regards.
    Satyaki De.

  • IPhone calendar faile to search for future events more than 1 year

    Dear guys,
    I can't search for future events more than 1 year later.
    Is it a common scenario?
    Many thanks!

    Dear guys,
    I can't search for future events more than 1 year later.
    Is it a common scenario?
    Many thanks!

  • Search documents with Business package for CRM 4.0 in EP

    Hello!
    I configured the business package so that I can browse through the different crm folder, but I can not add them to a trex index. When I add the folder "sapcrm" (described in the install guide) to an index, no documents are found.
    I am using Business Package for SAP CRM 4.0 60.2.3
    Kind regards
    Philipp Kölsch

    Hey!
    Did you come up with a solution to this problem?
    I am strugling with the same problem :/
    Best Regards
    Kristoffer Engh

  • Caching data for future searches?

    Hi folks.
    I need to modify an existing application to integrate with an LDAP server. One of the things my code needs to do is search LDAP entries, using a search filter. For example:
    NamingEnumeration<SearchResult> results =
    ldapContext.search(LdapName,
    "(|(objectClass=group)",
    null);
    This works just fine. My problem is that we can't afford to hit the LDAP server every time this search needs to be run - it takes too long to get the results. So, we will periodically request all LDAP entries, and cache them locally.
    My code then needs to search the cached data, just as it would if it were making a request of the LDAP server. Ideally, I'd like to be able to use the same filter syntax as above when searching the local data.
    Is there a way to search locally cached data? Essentially, I want to run the search specified above, but instead of pointing the code at an LDAP server, I want to point it at locally cached data.
    Thanks!

    Hi,
    If you require product locations only for forecasting I guess you will require only products and locations to be define in APO. I would suggest that you can create a seperate Model for this product locations which is not their in ECC and do the forecasting if it satisfies your business requirement, the reason being once you create master data directly in APO it will not be possible to CIF the master data fom ECC which will create inconsistency.
    You can use LSMW also to upload product and location if you are not defining comples parameters like Time phase cost in Product location & their are not many validation which I assume will be the case.
    Thanks,
    Sanjog

  • [SOLVED] Creating a font package for Ooolatex in libreoffice

    Dear all,
    I would like to pack up a font package for rendering latex equation in Libreoffice.
    The relevant fonts are:
    http://sourceforge.net/projects/ooolate … urce=files-
    containing both ttf and otf fonts.
    The aim is to use makepkg -s, pacman -U xxx route instead of copying by hand so that pacman can manage the fonts.
    I have to admit that I have no experience in PKGBUILD. And would like some help for the correct PKGBUILD file and ttf-ooolatex.install file.
    Here is what I have right now:
    PKGBUILD
    pkgname=ttf-ooolatex
    pkgver=1.0
    pkgrel=1
    depends=('fontconfig' 'xorg-font-utils')
    pkgdesc="custom fonts"
    arch=('any')
    source=(./$pkgname) -> I am not sure how to write the source line
    install=$pkgname.install
    build()
      mkdir -p $pkgdir/usr/share/fonts/ooolatex
      cp $srcdir/$pkgname/*.ttf $pkgdir/usr/share/fonts/ooolatex
      cp $srcdir/$pkgname/*.otf $pkgdir/usr/share/fonts/ooolatex
    ttf-ooolatex.install
    post_install() {
      echo -n "Updating font cache... "
      fc-cache -fs >/dev/null
    -> not sure what to do with the mkfontscale and mkfontdirectory
      echo "done"
    post_upgrade() {
      post_install
    As you can see, I am trying to copy all fonts to /usr/share/fonts/ooolatex folder and do a
    #  fc-cache -vf
    in that folder.
    Any help on writing the two files are greatly appreciated. Thanks in advance for helping.
    For more details about ooolatex in arch linux
    see
    https://wiki.archlinux.org/index.php/Ooolatex
    I will be adding the relevant instruction once I figure out how to install the fonts using pacman.
    Pok
    Last edited by pokpig (2012-08-14 11:50:19)

    I put together a PKGBUILD and .install for you. I'm not positive if it's totally correct and about the depends, but it seems to work. If someone else could look at it first, that would be great.
    # Maintainer: pokpig <[email protected]>
    pkgname=OOoLatexFonts
    pkgver=4.0.0_beta
    pkgrel=1
    pkgdesc="A set of macros to provide latex support in OpenOffice."
    arch=('any')
    url="http://sourceforge.net/projects/ooolatex"
    license=('GPL')
    depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
    install=OOoLatexFonts.install
    source=("http://sourceforge.net/projects/ooolatex/files/OOoLatex/OOoLatex-4.0.0-beta/OOoLatexFonts.zip")
    build () {
    cd "$srcdir"
    install -d "$pkgdir/usr/share/fonts/TTF"
    install -d "$pkgdir/usr/share/doc/$pkgname"
    install -m644 *.ttf *.otf "$pkgdir/usr/share/fonts/TTF"
    install -m644 README "$pkgdir/usr/share/doc/$pkgname"
    md5sums=('dcfd6ab5750d89393a0002687b751c48')
    and the .install:
    # arg 1: the new package version
    post_install() {
    echo "Updating font cache... "
    fc-cache -fs >/dev/null 2>&1
    mkfontscale /usr/share/fonts/TTF
    mkfontdir /usr/share/fonts/TTF
    # arg 1: the new package version
    # arg 2: the old package version
    post_upgrade() {
    post_install $1
    # arg 1: the old package version
    post_remove() {
    fc-cache -fs >/dev/null 2>&1
    mkfontscale /usr/share/fonts/TTF
    mkfontdir /usr/share/fonts/TTF
    hope that helps

  • Check installed packages integrity? [Solved - script inside]

    Hi,
    is it possible to check installed packages for integrity - i.e. missing/changed files, etc. I looked at pacman man, but found nothing ...
    Last edited by drakosha (2007-06-18 17:53:24)

    klixon wrote:I guess it uses a directory name for empty directories that are required, so the [ ! -d ] check is still valid...
    Oh no, finally it's a little bug in pacman (src/pacman/package.c)
    225 if(!stat(path, &buf) && S_ISDIR(buf.st_mode)) {
    226 /* if we stat it and it is a dir, don't print */
    227 } else {
    228 fprintf(stdout, "%s %s\n", pkgname, path);
    229 }
    If a directory doesn't exist, or is only readable by root, it can't stat it and detect it's a directory, so it'll print it
    As root, the only directory it prints is the one which doesn't exist, ie /tmp/ttf-ms-fonts/
    because of the special status of the ttf-ms-fonts package.
    And as user, it also prints /var/spool/cups/tmp/ , because it doesn't have the right to stat it I guess.
    I'm glad i'm doing the opposite of what you're trying to do... That looks a bit more hairy.
    lol indeed, that's why I gave up

  • Acrobat XI Pro Install via CCP Packager for Enterprise unuseable - tips for the unitiated

    Well, after at least six weeks of trying to script and package Acrobat XI via the CCP packager for enterprise (Windows 7 X64) I have learnt many home truths which I thought I would share with the unitiated. This process, from the point of view of an IT admin who has to mass deploy this application to 680 PC's as part of an updated SOE has been the most painful scripting process I have ever found of any package (we successfully deploy Office, and Autodesk apps!). Not only that, but our entire State technical colleges have all purchased the same version. This will be affecting IT staff across a huge area, perhaps worldwide. Below are some some facts relating to this that I will share so others do not have to trawl the minefiled of dead-ends and confusion that is Adobe forums/official documentation. Apologies for not finding direct links to all of the below just yet but I've run out of time as we now have MANUALLY install Acrobat XI on all of these machines. When I get time I will post some of the links:
    Facts:
    Acrobat XI and Lightroom are NOT "CC" packages. Therefore they rely on a spearate serial numbers to install standalone without another major Adobe product (eg Photoshop) to be installed and then run first. Otherwise they will run in trial mode. If your organistaion is wanting to install these products I highly recommend seeing if Adobe can provide you with these.
    Without the use of serial number for Acrobat XI this almost renders the Customisation Wizard effectively useless, none of the silent install switch will work with "Offline Exception"
    Yes, one Adobe employee notes that you must install a major package before Acrobat but as the aoplogies for not fixing this were posted last August, we are still in the quandry of not having any useable fix except for the ridiculous "Exceptions" file and Exceptions installer.
    If you run the Build and/or execeptions msi's it installs Acrobat twice, gold Adobe, gold.
    http://forums.adobe.com/message/6039529#6039529 - look at this for a working script for Photoshop etc, it's great.Thanks to http://forums.adobe.com/people/PetriRiihikallio for posting this. However, alas, it cannot silently install Acrobat correctly (thus far).
    It appears that the msi builder for CCP for enterprise is fatally flawed. I have never had as much problem with installing msi's -  ever. For example, I have had to re-package the msi multiples times and many times simply running the msi will fail.
    The idea that all major installs have to install the 32 bit version AND the 64 bit version is riduclous, enough said.
    http://blogs.adobe.com/acrolaw/2013/02/acrobat-xi-deployment-guide-for-large-firms/ this guide may be useful for people who have been given a separate serial number.
    http://helpx.adobe.com/acrobat/kb/known-issues-acrobat-xi-reader.html another useful link
    I think for the time being I have now wasted enough time trying to tear my hair out with this. I will be waiting for Adobe to announce Acrobat and Lightroom CC. this will enable the correct deployment of a single app without having the bloat my SOE with unnecessary applications that most staff rarely use. Ahhh, I love a good manual install via VNC/RDP, don't you?

    Hi Waltpenner and others, yes it can be very confusing and writing script after script got me even more confused.
    Now, the story continues, after 6+ hours on the phone with Adobe Support...
    When you install Adobe Acrobat XI it asks you to install the C++ Redistributable package and this is where the msi will STOP INSTALLING. even though the MSI says "complete"
    Now you think to yourself, OK, I'll write a script to install this msi package no problems, solved.
    Nope, the msi for Acrobat Pro XI will Still Halt even if you write this into the script along with halt no err or something similar in your code.
    So what do you do?
    When you create your msi in Cloud Packager, even though this feels completely against your better judgement tick the box under conflicting Process entitled "Ignore Conflicts and Continue installations" This will (finally) allow you to run the msi. Please see the wonderful deployment script above, which you may still need to edit to your needs (I did) - which I post once it's working perfectly.
    You could then install the C++ redist from Microsoft at a later date ----> On that note however (thanks Microsoft for this gem) the Visual C++ redist is an msi for download, but it's actually a zip file calling an exe inside it. I suggest using the App Deploy Repackager  to help you change registry entries if you need to install this, but choose your favourite tool (and no I'm not talking about that work colleague you don't like
    Note: You will need to install this for certain features of Acro Pro XI to function, most of which relates to sever functions of Acrobat. I will post the exact reasons when I find them. Under pressure to get this deployed, I have not deployed this pckage as yet. Also, I'm unsure how Visual C++ will affect other major apps across my enterprise just yet.
    Things to still consider
    Acrobat still installs twice in the program directory (1.7GB nd 1.8GB respectively)
    As all of the other CC packages are quite easy to install, Adobe needs to provide better service to it's enterprise customers by creating a proper version of Acrobat and Lightroom which is Acrobat CC and Lightroom CC, not version numbers tacked onto their new Cloud Service.
    As for the above point I would still recommend creating the smallest msi packages you can, as large msi's that install a number of Apps (eg all of the web/image editing apps) take forever and quite often exhibit install errors
    The amount of time I've spent on this is ridiculous, and we've had to package everything from Office to Autocad.
    The amount of bandwidth I've chewed up is excessive, with package re-creation (download) of all the products probably about 100GB - however the ability to edit these packages with updates with the CCP is a good step forward.
    Using the CCP through a proxy is horrendous, and complicated with the amount of exception through the servers you have to prvide (even then it rarely works).
    The MSI packager still needs quite alot of work. As Petri states why he had to write a script like this when Adobe could have done the same thing is beyond him.
    Adobe needs to trawl it's forum posts and take out the many false leads and dead ends provided by it's experts.
    When I Think of anything else, or wite more scipts I'll let you all know.
    Cheers,

Maybe you are looking for

  • Mini DVI - VGA Issue

    I purchased a Mini DVI-VGA adaptor from Apple over a year ago. I've used it only to connect my Macbook to a projector. Once connected, the screen will flash briefly and then the resolution will change and I will be able to switch back and forth from

  • Order to script creation of objects? Some reference each other.

    I'm writing a script that will add objects to a 10g schema. I have packages containing functions and procedures. The functions and procedures reference some views that also need to be added. The views themselves reference some of the package's functi

  • Down payment request against PO

    Hi SAP Guru, When user entering down payment request in F-47 against  a purchase oder the system is allowing to post the amount more than PO value which is logically incorrect. How can I prevent this ? Kindly reply with details. Regards, Sajib

  • Itemwise details in planned delivary cost report in invoice(miro)

    Dear Gurus,   Can anybody tell me how to get the details of line itemwise  planned delivary cost . Thanks in advance . Nilesh

  • Arch router / connection share dns lookup works, but no ping [solved]

    I lost some config and forgot how to set this up. I have a dual nic arch box with some clients behind it. dnsmasq serves dhcp and dns on the LAN side (192.168.10.0/24). WAN port of arch box (192.168.1.201) talks to actual modem (192.168.1.1). router