Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Activating a screen saver problems

by golux (Pilgrim)
on May 29, 2012 at 03:37 UTC ( #972905=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Activating a screen saver problems
in thread Activating a screen saver problems

Hi palkia,

Sorry if I was confusing; I didn't mean you had to be in the directory. I just did it that way myself because I was lazy, and wanted to experiment with running the screensaver in a command ("cmd") window (so I only had to type the screensaver name, not the full path). But giving the full path is fine, and doesn't seem to conflict with the /s switch when I do it this way (note the space before the /s switch):

use strict; use warnings; system('C:/winnt/system32/sspipes.scr /s');

And yes, the "-w" part of the "shebang" line, as it's called, is for warnings (again, look at perllexwarn). The rest of the first line is more germane to Linux systems, where it specifies the path (ie. directory) where Perl is located (ie. "/usr/bin/perl"). But on Windows you can safely remove the entire first line, and the script should still run.

say  substr+lc crypt(qw $i3 SI$),4,5


Comment on Re^5: Activating a screen saver problems
Select or Download Code
Re^6: Activating a screen saver problems
by palkia (Scribe) on May 29, 2012 at 19:12 UTC
    Got it.
    You are absolutely right, by adding the space before the /s,
    I'm no longer forced be in the directory itself, and can use the entire path instead.

    Thank you very much for taking the time to detail about such small things with large impact.
    Most appreciated.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972905]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-09-16 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (50 votes), past polls