Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
How to Create a Multi-Call Linux Binary
Results 1 to 4 of 4

Thread: How to Create a Multi-Call Linux Binary

  1. #1
    Senior Member comtux's Avatar
    Join Date
    Sep 2004
    Location
    Wilkes Barre Pa
    Posts
    342

    How to Create a Multi-Call Linux Binary

    Does anyone know how to create a Multi-Call Linux Binary (a bin file)
    what i need to do is pack a dir and when you click on the packed file you created it exacutes a shell command.

    i am guessing i could create an archive file with a special extension like
    .pack and have a script ran when an archive file with that extension is click on.
    Or create a option in the kde menu to run a shel command when a archive with the .pack extension is selected.

    If anyone has any ideas let me know.
    thanks.
    Wenn Sie Spaß meines Englisch mich Willensfuckingtötung Sie bilden.

  2. #2
    I really don't know how to do this but I have a theory that might send you in the right direction. Ignore this if it makes no sense.

    If you set up a shell script that
    a unpacks to temp dir
    b opens shell in said temp directory.
    c have a command that packs it all back up with or without changes to arhieve from said shell.

  3. #3
    Senior Member comtux's Avatar
    Join Date
    Sep 2004
    Location
    Wilkes Barre Pa
    Posts
    342
    Currently i have my own package manager that installs my *.wolfpkg packages what i am trying to do is basicly have it setup so when i click on one of my packges the package that is clicked extracts it self and runs the gui installer that is contained in the extracted dir.

    I have tried useing the kde servicemenus.

    Example 1
    [Desktop Entry]
    ServiceTypes=all/all
    Actions=InstallWolfpkg

    [Desktop Action InstallWolfpkg]
    Name=Install
    Icon=access
    Exec=/bin/bash -c "tar --xvzf *"

    And this didn't work.

    I then tried asigning my package type to the tar -xvzf command and that didnt work eather.

    I will continue to try to figure out the 2 options above but i thing there is a way to make a file type auto excutable at the kernel level.

    Thanks for you reply Wildheart but that doesn't really help me out good try though.
    Wenn Sie Spaß meines Englisch mich Willensfuckingtötung Sie bilden.

  4. #4
    Senior Member comtux's Avatar
    Join Date
    Sep 2004
    Location
    Wilkes Barre Pa
    Posts
    342
    Ok let define what a auto excutable binary is.
    Something that is compiled that perfoms a function when triggerd.

    Regardless of how you build an auto excutable there are external applications that are playing apart so you can perform a function that makes this auto exccutable what it is.

    So what do we need to do.

    First compile our program.
    1. ./configure --prefix=/opt/build && make && make install

    Second figure out what files /opt/build contain.
    2. find * > found.txt

    Third package up the src application we just compiled and installed to /opt/build.
    3. tar -czvf example-1.0.tar.gz usr

    Fourth make a gui installer
    4. Im not going into this.

    Fith make our wolfpkg
    5. tar -czvf example-1.0.wolfpkg packages installer documents

    Sixth make it auto excutable.
    6. ..................................>
    [Desktop Entry]
    ServiceTypes=all/all
    Actions=InstallWolfpkg

    [Desktop Action InstallWolfpkg]
    Name=Install
    Icon=access
    Exec=/bin/sh -c "tar xzf %U -C %d && %d/installer"

    Now what should happen is you have your package when you right click and select Install under actions the .wolfpkg will be extracted and the gui installer is started.
    Wenn Sie Spaß meines Englisch mich Willensfuckingtötung Sie bilden.

Similar Threads

  1. How to Create a Recovery Cd in ubuntu linux
    By sampathkumar in forum Ubuntu / Debian
    Replies: 3
    Last Post: 10-23-2008, 07:33 AM
  2. How to create net connection on redhat Linux AS 3
    By HISSAM in forum Redhat / Fedora
    Replies: 4
    Last Post: 09-14-2007, 11:01 AM
  3. Multi-service; multi IP NIC; firewall: 3 questions
    By Dark Horse in forum Security
    Replies: 0
    Last Post: 07-08-2007, 07:39 PM
  4. How To Create DNS Server IN Linux..!
    By saqib389 in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 11-07-2006, 05:31 PM
  5. create linux user accounts over the internet
    By samanthi in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 05-27-2005, 04:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •