Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Permission denied writing to Windows 10

by BrowserUk (Patriarch)
on Sep 14, 2016 at 18:04 UTC ( [id://1171751]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Permission denied writing to Windows 10
in thread Permission denied writing to Windows 10

What happens if you type echo . > hello.txt at that same command line?


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". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Permission denied writing to Windows 10
by Anonymous Monk on Sep 14, 2016 at 18:25 UTC

    It works as expected - I get a hello.txt file created with the . in it.

      Okay. Now try perl -E"say for 1 .. 10" > hello.txt

      And if that works (which it should) then try:

      perl -E"open O, '>', 'hello.txt' or die $^E; say for 1 .. 10; close O"

      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". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice.

        The first command line worked - I got a file with the integers 1-10.

        However, the second command line failed with the error:

        Access is denied at -e line 1.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-19 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found