Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Proc::Background does not take file path with spaces

by SuicideJunkie (Vicar)
on Apr 27, 2012 at 13:34 UTC ( #967632=note: print w/replies, xml ) Need Help??


in reply to Re: Proc::Background does not take file path with spaces
in thread Proc::Background does not take file path with spaces

On a windows command line, your parameters are all (white?)space separated. If you want a zero-length parameter you need to double quote it so it isn't ignored, like so:

USAGE: mangle.exe [filename] [password] [index number] mangle.exe unprotected.dat "" 42

Parameters that are all whitespace have the same problem and solution.

No idea on why it had to be done that way though.

Replies are listed 'Best First'.
Re^3: Proc::Background does not take file path with spaces
by BrowserUk (Pope) on Apr 27, 2012 at 14:11 UTC
    If you want a zero-length parameter

    Hm. Okay, you got me there. Mind you, in 30 years I don't remember ever having used a command that took a "zero length parameter".

    Every command I'm aware of that takes a password has an option to supply it. And optional parameters always come at the end.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Hi Guys I end up using the following
      use Win32; $CommandNew = Win32::GetShortPathName("C:\\Program Files (x86)\\vs.exe +"); Proc::Background->new($CommandNew);
      Thanks for looking

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967632]
help
Chatterbox?
[Corion]: Once more, I'm looking for a sane client-side framework, but I guess these don't exist. Everything I look at either uses a weirdo home-grown templating language (like Angular in all its incarnations) or uses weirdo Javascript incarnations (like ...
[Corion]: ... Inferno.js, which uses ES2015) or uses some horrible amount of Javascript infrastructure before you can even render a single file.
[Corion]: I'd really like to create a dynamic frontend for my Google Keep clone, but so far, all the templating solutions seem to bring their own template language or require me to hand-code everything in (their own flavour of) Javascript. I'd like something ...
[Corion]: ... that can use templates from the HTML (via <script language="text/ template">... my template ...</script> and otherwise gets out of my way. But it seems that is not how the Javascript world is, currently :-/
[Corion]: I guess my question is, has anybody worked with React, Ember, Angular (v2, v4, v.whatever) or any other JS client-side dynamic rendering/virtual DOM thingie and found a simple, single-file solution like jQuery?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-03-27 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.