Groups
Sign in
Groups
phantomjs
Conversations
Labels
About
Send feedback
Help
Read from stdin
18 views
Skip to first unread message
klo
unread,
Jun 21, 2016, 9:00:23 AM
6/21/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phantomjs
Hi,
by using:
========================================
fs
=
require
(
'
fs
'
);
page
.
content
=
fs
.
read
(
'
/dev/stdin
'
);
========================================
stdin can be read from *nix.
How can I access stdin from Windows?
Thanks
klo
unread,
Jun 21, 2016, 9:30:31 AM
6/21/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phantomjs
It's in system: "system.standardin.read()"
Reply all
Reply to author
Forward
0 new messages