Console APP - Call function based upon a command line parameter

I am writing an extrensible console ( interactive console ) application was thinking having my application read in the command, then look up which function to use to process its parameters.
say the command the user types is "print Hello World"
I would just grab the first parameter, recognize it as the print command , and then call a function in my class that prints out "Hello World" to the screen.
Instead of doing a bunch of If statement to match the first argument to a recognized command, what I would like to do is have a type of Hash table that points to the correct function to process the command.
So.. something like :
String cmd = console.readline( "Enter your command" ); - get the users command
"function = HashMap.get( cmd)" - get the function out of the hashmap
"function( parameters )" - run the function
the prompt for another command, as long as the last command wasn't "exit"
I would have to check to make sure the command had a function mapped to it, but with this setup, all I do is update the table when I need to add a new command. and the function( method ) that processes it.
Thanks!

It sounds like you're describing the Command pattern. It normally goes something like this:
interface Command {
    Object execute(String... args);
Map<String, Command> commands = new HashMap<String,Command>();
commands.put("print", new Command() {
    public Object execute(String... args) {
        System.out.print(args);
// ... and more commands
//.. then in your command-line UI, for example:
BufferedReader in = new BufferedReader...
String line;
while((line = in.readLine()) != null) {
    String[] tokens = line.split();
    Command cmd = commands.get(tokens[0]);
    String[] args = take_subarray_of_tokens_starting_at_1_I_forget_easiest_way_to_do_that(tokens);
    Object returnval = cmd.execute(args);
    // maybe you'll want to do something with return val, or maybe it should be an int more like an exit val, whatever
}Not tested but you get the idea.

Similar Messages

  • How to call a ODI Job using Command line?

    Hello All,
    Please help me on this..
    How to call an ODI Job using Command line?
    Thanks
    Ravikiran

    Generate a scenario of your package. Then go to <ODI_HOME>/oracledi/agent/bin in command prompt and invoke startscen command .
    startcmd.sh OdiStartScen -SCEN_NAME=scn_load_data -SCEN_VERSION=001 -CONTEXT=GLOBAL -AGENT_CODE=odiSchedAgent001
    Bhabani
    http://dwteam.in

  • Password not to be a command line parameter within scripts

    Hi,
    We have a few batch programs wherein the database passwords are stored as a command line parameter in an environment variable script.
    But the customer wants to avoid this.
    What are the options of storing password externally but which should be accessible to the batch programs.
    Please advise.
    Regards,
    Narayan

    user7202581 wrote:
    Hi,
    We have a few batch programs wherein the database passwords are stored as a command line parameter in an environment variable script.
    But the customer wants to avoid this.
    What are the options of storing password externally but which should be accessible to the batch programs.
    Please advise.
    Regards,
    Narayan
    Might solution depend upon OS name & version?
    Might solution depend upon Oracle version (to 4 decimal places)?
    Might solution depend upon where script file resides on DB Server or remote client system?
    Yes, options exist, but I refuse to speculate based upon total & complete lack necessary details.
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Command Line Parameter in File Adapter in SAP PI

    Hi
    Can any body explaine me what is the purpose of 'Command Line' parameter in File Adapter (Sender/Receiver).
    Regards,

    Hi,
    Refer below two links for more help!
    SAP XI File Adapter OS Command Line Feature     
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature
    More with the File Adapter      
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/morewiththeFileAdapter
    Regards,
    Jilan

  • Can't run JavaFX app as a jar file from command line

    I'm trying to build a JavaFX app from scratch (that is, by including the jar file from the JavaFX SDK rather than by using the special JavaFX project type from NetBeans). It runs fine in NetBeans. However, when I try to launch it as a jar file from the command line (using "java -jar dist\TestApp") I get the following. Has anybody seen this before, and if so how can I fix it?:
    *** Fallback to Prism SW pipeline
    Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLink
    Error: Can't load library: C:\dev\TestApp\dist\bin\mat.dll
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
    289)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:68)
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherIm
    pl.java:145)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:
    27)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:97)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.UnsatisfiedLinkError: Can't load library: C:\dev\RedactionT
    oolPrototype\RedactionToolPrototype.Core\dist\bin\mat.dll
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoad
    er.java:155)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoad
    er.java:85)
    at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:
    30)
    at com.sun.glass.ui.Application$1.run(Application.java:28)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:26)
    at com.sun.glass.ui.win.WinApplication.<clinit>(WinApplication.java:33)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
    Factory.java:20)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
    Factory.java:17)
    at com.sun.glass.ui.Application.Run(Application.java:51)
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
    279)
    ... 5 more

    Unsatisfied link means that Java is trying to access a native library, but it cannot be found. As to why this error is being thrown, here is my guess:
    If you open up one of the sample jars with a zip viewer, you will see that the Manifest file has the following entries:
    >
    Manifest-Version: 1.0
    JavaFX-Version: 2.0
    implementation-vendor: Oracle
    implementation-title: BrickBreaker
    implementation-version: 1.0
    JavaFX-Application-Class: brickbreaker.Main
    Created-By: JavaFX Packager
    Main-Class: com/javafx/main/Main
    >
    In other words, a JavaFX project works a bit differently than a normal Java project. com/javafx/main/Main is used as the Main class and your "Main" class is called later.
    If you are trying to build this from a normal Java project, then com/javafx/main/Main will not be created and it will call your Main class right away. Thus, whatever setup is needed to run JavaFX will not occur.

  • Calling this simple servlet from command line -- ERRORS!

    Below is my servlet. I call from command line via:
    java BatchServlet
    and I get:
    Exception in thread "main" java.lang.NoClassDefFoundError: BatchServlet
    IS there a reason for this
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class BatchServlet extends HttpServlet implements Runnable{
    static Thread t = null;
    public void init(ServletConfig c) throws ServletException{
    super.init(c);
    if (t==null){
    t = new Thread(this);
    t.start();
    public void run(){
    while (true){
    try{
    Thread.sleep(5000);
    }catch (InterruptedException ie){
    ie.printStackTrace();
    System.out.println("Wake up");

    Same error with this little prog.....
    Notice main method
    package wch.util;
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class test {
    public void main(){
    System.out.println("test");

  • Change Application-Based firewall via command line

    I'm looking for the command line method of changing the application-based firewall. I am not referring to ipfw, which I already have configured. Basically, all I want to do is change "Set access for specific services and applications" to "Allow all incoming connections" under Security > Firewall. However, I need to do this via ssh, so I need the command line method.

    sysadmin wrote:
    It has been included in several Apple packages dating back to Tiger. However, you have to dig it out of one of the packages in /Library/Receipts. Use the "locate" command and you'll find it in a few packages. Apparently they were using it internally long before they included it in the OS.
    Interesting. The same thing was true for SetFile, which was/is present in Developer Tools. If you hadn't installed the latter, you could still find it in some of the system update for Tiger.
    Using 'defaults' for nested values can be downright painful,
    Yes

  • App fails to compile with mxmlc command-line but builds fine with flash builder IDE.

    Hi,
    i have this flex app (its a flex project created from flash builder ), it compiles fine when i build it from IDE.
    it fails to compile when i do it from command line through mxmlc.
    i am invoking the mxmlc at the location <flash-builder-installation>\sdks\<flex-ver>\bin\
    the mxml file is test.mxml
    i am invoking like the following
    c:\<bin>\mxmlc test.mxml
    i dont have any dependency on any of custom swc file.
    i am getting the following type errors when i compile it from my .as file
    Error: Type was not found or was not a compile-time constant: TouchEvent
    Error: Type was not found or was not a compile-time constant: File.
    Error: Type was not found or was not a compile-time constant: FileStream
    could you please let me know what i am missing here ?
    thanks,

    Is this a AIR app or a mobile app? If you are building AIR app for desktop then you can use amxmlc instead of mxmlc.
    If its a mobile app then use mxmlc +configname=airmobile
    -Gaurav
    http://www.gauravj.com/blog

  • How do I start an app using transset-df with the command line?

    I'm using openbox and have found that I can make xfce4-panel transparent using transset. The only problem is that I have to run "transset" and then click on the panel every time. Is there a command I could just type in to the command line that would start xfce4-panel with .75 transparency? I could then add that to my autostart.sh file and all would be good and dandy.
    What I was thinking is maybe there's a command like
    transset-df .75 xfce4-panel
    that starts up the panel with 75% opacity. Obviously that doesn't work because I tried it. I also read something about using a script, but I don't know how to write those. Perhaps there is a way to set it so whenever xfce4-panel is started, transset-df sets it at 75% opacity? How would I go about doing this?
    Last edited by Redrazor39 (2009-06-11 15:15:19)

    Openbox seems to be doing a 'tidy up' of all windows after autostart.sh completes.
    This would be fine, except for the fact that the tidy up re-renders every window and while it does so it re-sets transparency as part of the same process.
    So, to get your xfce panel to stick at the transparency setting you apply with transset-df, you need to ensure the transset-df is done after autostart.sh finishes.
    The easiest way to achieve this is to create a small script, say in /usr/local/bin
    # /usr/local/bin/openbox-xfce-panel-transset
    # Set xfce4-panel transparency after safe delay
    sleep 1
    transset-df -n "xfce4-panel 4.6.1" 0.75
    Add a call to this as the last line of your autostart.sh
    # Set xfce4-panel transparency after autostart.sh has exited
    openbox-xfce-panel-transset &
    Regards,
    Mike
    Last edited by bluearcus (2010-01-08 19:25:56)

  • Simple command line parameter does not seem to work; options?

    All,
    I asked an earlier question about getting an application (Olyvia) to work as a remote app.  Specifically, we were having issues with it not wanting to run for more than one user at a time.
    I found that I needed to add the "-m" (multi-user switch) to enable it to run for more than one user at a time.  I tested this by logging on to the server by two different people, bringing up a command prompt, and adding the "-m"
    to execute line.  so, "xvViewer.exe -m"  Worked great.
    Unfortunately this solution does NOT work when setting the same "-m" option in the command line parameters "Always use the following command line parameters"
    I do note that the published app name is Olyvia, but the actual application file is "xvViewer" and is called an "alias."  I'm wondering if the parameter is not being passed to the actual executable?
    Am I going to have to create a vbscript/powershell/whatever that calls the executable with the correct parameter and publish that script instead?
    Thanks,
    GeoffW

    Hi,
    Generally by passing the command line it must work but if for any specific application you are facing any error then you can try for the script\batch file and then publish as RemoteApp and check the result.
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Command-line parameter won't work

    I am trying to use the oraxsl command-line processor to pass a parameter to a stylesheet. All the examples I have found for this format (courtesy of Steve Muench in various mailing lists) show the same format I am using (i.e. oraxsl -p name="Steve" datadoc.xml transform.xsl),
    yet the processor invariably replies "oraxsl: Missing <param list> after -p". To which I can only reply, "There are none so blind as those who will not see." I'm using Windows XP. Has anyone else had a similar experience?

    I have that problem using the XML Java route. The code works but the <xsl:parm name="p"/> does not get populated with the value passed on the querysttring of th ecalling jsp.
    If i hard code the value of p with text then the xslt runs properly.
    I will try the oracle command line function and see what it does as I did not know about it until today.

  • Desktop command line parameter problem

    We have just completed an upgrade from Discoverer 4i to 10g. We use the desktop version installed on a windows 2000 terminal server to run a batch file nightly (using the windows task scheduler to call the batch file). This runs the reports, then exports them in xls format to a public directory. During my testing I installed the 10g desktop version on my win xp machine to test the command line capabilities - we have about 50 reports that run nightly, and everything ran fine. Now I have installed the 10g Desktop and Admin versions on the terminal server, and need to use this new version to run the reports nightly. I did the install as an admin, and I am running the scheduled task as an admin. The reports are failing, complaining about the parameter values. With the exception of the path to the dis51usr.exe file, I'm using the exact same command line on my pc as I'm using on the terminal server.
    Here's the command line I'm using on my pc, which runs fine:
    c:\oracle\BIToolsHome_1\bin\DIS51USR.EXE /connect it_reports/password@prod /opendb "Order Shipments" /parameter "From Date" "01-APR-2006" /parameter "To Date" "30-APR-2006" /parameter "Sales Territory" "North America" /export xls "\\docserve\rhonda\Discoverer\DiscovererReporting\SalesReporting\North America\Order Shipments Apr 2006.xls" /batch
    Here's the command line I'm using on the terminal server:
    d:\oracle10g\BIToolsHome_1\bin\DIS51USR.EXE /connect it_reports/password@prod /opendb "Order Shipments" /parameter "From Date" "01-APR-2006" /parameter "To Date" "30-APR-2006" /parameter "Sales Territory" "North America" /export xls "\\docserve\rhonda\Discoverer\DiscovererReporting\SalesReporting\North America\Order Shipments Apr 2006.xls" /batch
    This fails, with the following noted in the log file:
    4/25/2006 1:54:09 PM
    d:\oracle10g\BIToolsHome_1\bin\DIS51USR.EXE /connect it_reports/password@prod /opendb Order Shipments /parameter From Date 01-APR-2006 /parameter To Date 30-APR-2006 /parameter Sales Territory North America /export xls \\docserve\rhonda\Discoverer\DiscovererReporting\SalesReporting\North America\Order Shipments Apr 2006.xls /batch
    Invalid value "From Date" for parameter "01-APR-2006"
    Invalid value "To Date" for parameter "30-APR-2006"
    Invalid value "Sales Territory" for parameter "North America"
    4/25/2006 1:54:10 PM
    I've been trying to figure this out for a couple of days now. Just got my copy of the new Discoverer 10g Handbook in the mail today (great book, by the way!) - I was hoping it would shed some light on this problem, but I'm still stuck. I'm hoping I'm missing something really simple here, and appreciate any help I can get.
    Thanks
    Rhonda

    Hello Ott,
    Yes, I tried that, because that is what the error message indicates. I also tried using single quotes instead of double around the parameter names and/or parameter values, and using no quotes at all. The confusing thing is that the same command works on my pc installation. I have also looked at all the option settings between the 2 installations, and made sure they are the same. The only difference is the operating system - for the life of me I can't figure out why 10g would act any different than 4i installed on the same OS, or for that matter why 10g would act any different installed on XP vs Terminal Server. I've got to be missing something simple here.
    thanks
    Rhonda

  • Newbie: diff between starting app from dock and starting from command line

    This isn't strictly a developer question, but I'm looking for some expert advice for troubleshooting a vexing problem with Apps--OpenOffice and NetBeans--that don't want to start from the dock but will happily start from a terminal window. When I start OO from the dock, I get an error message about the date command not found in the main.scpt. NetBeans just fails silently. This problem just started happening for no apparent reason--at least not apparent to my limited Mac experience.
    I would greatly appreciate it if someone could enlighten me on what's going on here or perhaps give me some clues. I am mostly a web developer, so troubleshooting desktop apps is a bit foreign to me, and what little desktop programming experience I have has been on the MS platform. I appreciate your patience and understanding.

    Thanks, etresoft, for your reply.
    I have two users on this machine. Dock launch for both NetBeans and OpenOffice works for one user but not the other. I compared the output of the shell 'set' command for both users and the only material difference was that the user for which the dock launch works included '/Users/username' in the PATH variable. I added that to the 'broken' user's environment.plist, logged out, logged in, and the launch still failed.
    The application launch fails on basic shell commands. Here are the console messages for the failed launch.
    9/14/08 9:18:30 AM [0x0-0x188188].NetBeans 6.1[16363] /Applications/NetBeans/NetBeans 6.1.app/Contents/MacOS/netbeans: line 48: ls: command not found
    9/14/08 9:18:30 AM [0x0-0x188188].NetBeans 6.1[16363] /Applications/NetBeans/NetBeans 6.1.app/Contents/MacOS/netbeans: line 53: dirname: command not found
    9/14/08 9:18:30 AM [0x0-0x188188].NetBeans 6.1[16363] /Applications/NetBeans/NetBeans 6.1.app/Contents/MacOS/netbeans: line 57: dirname: command not found
    9/14/08 9:18:30 AM [0x0-0x188188].NetBeans 6.1[16363] Cannot read cluster file: /../etc/netbeans.clusters
    Here is the code for the NetBeans launch up to the failure point. The command not found messages refer to the ls and dirname commands in the while loop and the dirname command immediately following the while loop.
    PRG=$0
    while [ -h "$PRG" ]; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null`
    if expr "$link" : '^/' 2> /dev/null >/dev/null; then
    PRG="$link"
    else
    PRG="`dirname "$PRG"`/$link"
    fi
    done
    progdir=`dirname "$PRG"`
    if [ -f "$progdir"/../etc/netbeans.conf ] ; then
    . "$progdir"/../etc/netbeans.conf
    fi
    # following should be done just in RPM or Solaris Launcher
    # if [ -f /etc/netbeans.conf ] ; then
    # . /etc/netbeans.conf
    # fi
    # #68373: look for userdir, but do not modify "$@"
    userdir="${netbeansdefaultuserdir}"
    founduserdir=""
    for opt in "$@"; do
    if [ "${founduserdir}" = "yes" ]; then
    userdir="$opt"
    break
    elif [ "$opt" = "--userdir" ]; then
    founduserdir="yes"
    fi
    done
    if [ -f "${userdir}"/etc/netbeans.conf ] ; then
    . "${userdir}"/etc/netbeans.conf
    fi
    if [ ! -f "$progdir"/../etc/netbeans.clusters ]; then
    echo Cannot read cluster file: "$progdir"/../etc/netbeans.clusters 1>&2
    exit 1
    fi
    It's obvious from the console output that progdir is not set correctly. I'm still trying to figure out why the shell commands are not found.
    Thanks again for your previous reply.

  • [Solved] X Freezes When Command Line Parameter Is Added For 2bwm

    I'm currently trying to set up 2bwm with my own settings via the config.h file. Here are the changes I'm trying to change.
    ///---Colors---///
    static const char *colors[] = {"#0000FF","#7f7f7f","#7a8c5c","#ff6666","#cc9933","#0d131a","#000000"};
    ///--Menus and Programs---///
    static const char *terminal[] = { "st '-f inconsolata:pixelsize=20'", NULL };
    After I tweaked the config.h file, I ran a "sudo makepkg -s --asroot", and then installed the package like this, "sudo pacman -U 2bwm.pkg.tar.xz". I downloaded the "2bwm-git" package via "sudo cower -d 2bwm-git". Is there something I did wrong here?
    Last edited by shoober420 (2014-08-01 11:06:05)

    Copying and pasting is a pain using nano lol.
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o $
    'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'rsync::/usr/bin/rsync --no-motd -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param$
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --par$
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    #MAKEFLAGS="-j2"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    #-- sign: Generate PGP signature file
    BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx$
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx$
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    #-- upx: Compress binary executable files using UPX
    #-- debug: Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:

  • I get an Invalid Command Line Parameter(valid parameters are "/install" and "/uninstall") when trying to open a zip file in saved locationall

    When I get an email photo from a cell phone it is saved in the download folder (which is another problem), and when I try to open it in that folder I get the above error message. I am able to open the picture in the body of the email however. I would like to save those pictures in "My Documents/Pictures."
    Thanks...WIN 7 system

    If the image is displayed in the body at the size you want, you may be able to save it using one of these approaches:
    * right-click image > Save Image As...
    * right-click (anywhere on page) > Page Info > Media tab > select image > "Save As" button
    To change your download folder, or turn on the dialog to let you choose every time, check out this article: [[Startup, home page and download settings]].
    Does that work?
    Regarding the error message in your subject line, I don't know what is causing that. Which Zip/Unzip program do you use?

Maybe you are looking for

  • Ipw2200

    Hi. I'm attempting to get wireless connection going with ipw2200. I've installed ipw2200-fw and have attempted the wireless setup in the beginners guide with no success. After typing in "iwconfig" i get an unassociated wireless extension on eth1. Usi

  • Accessing properties of characters in a string

    Hello, I am trying to access the property of selected fonts inside a string. But apparently, the whole string receives that peroperty. For ex, I want to make one character bold, but the whole string becomes bold. I want to change the font of one char

  • Quality Notifications - Setting Required Fields

    Is there a way to set certain fields as required for only a subset of Quality Notification Types??  The specific field I want to set is "Required End". I can see where this change would be made and applied on a global level, but do not see a way to o

  • Default  value for a column in Table Control

    Hi friends, can i set dinamcally a default value for a column in table control?, this column is check type. This default value must appear in empty rows, thanks

  • Table monitering in CCMS

    Hi, I created table monitoring in RZ21 using CCMS_GEN_TAB_R method set the Execute method as background Startup as immediately after monitoring segment startup Release as data collection I has Reset Segment to WARMUP but i am not able to see sub tree