This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[1.7.27] cannot redirect output to /dev/clipboard: "write error: Permission denied"


I am getting errors when using bash redirect syntax to write to
/dev/clipboard. Reading works ok.

# this does not work
$ echo "foo bar" >file.txt

$ cat file.txt >/dev/clipboard
cat: write error: Permission denied

# nor this
$ ls -la >/dev/clipboard
ls: write error: Permission denied

# but this does
$ echo "foo bar" >/dev/clipboard

$ cat /dev/clipboard
foo bar

# this works too
$ dd if=file.txt of=/dev/clipboard
0+1 records in
0+1 records out
8 bytes (8 B) copied, 0.000127467 s, 62.8 kB/s

# more information
$ ls -la /dev/clipboard
crw-rw-rw- 1 steveb None 13, 254 Nov 30  2006 /dev/clipboard

$ uname -a
CYGWIN_NT-6.1-WOW64 box3 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin

I have rebooted and updated Cygwin (cygcheck attached).

Any ideas?

Yours,
Jeremy Hetzler

Attachment: cygcheck.out
Description: Binary data

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]