473,395 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

input redirection

Hello,

is there any command line switch or anything else which would allow me
to use the standard input as the source for a script? so that I could
type perl [option] hit return and type out the script and allow it to
execute? I know about using file redirection "<", but I don't want to
put the source on a file and redirect it's contents to the program,
instead I want to directly type the contents of the script.
Jul 19 '05 #1
6 2520
ma**********@users.sourceforge.net (MadHatter) wrote in message news:<92**************************@posting.google. com>...
is there any command line switch or anything else which would allow me
to use the standard input as the source for a script?


-

This newsgroup does not exist (see FAQ). Please do not start threads here.
Jul 19 '05 #2
ma**********@users.sourceforge.net (MadHatter) wrote in message news:<92**************************@posting.google. com>...
is there any command line switch or anything else which would allow me
to use the standard input as the source for a script?


perldoc perlrun

will tell you to give perl the option "-" to read the program from
stdin. Use comp.lang.perl.misc instead of this newsgroup.
Jul 19 '05 #3
no****@mail.com wrote in message news:<4d**************************@posting.google. com>...
ma**********@users.sourceforge.net (MadHatter) wrote in message news:<92**************************@posting.google. com>...
is there any command line switch or anything else which would allow me
to use the standard input as the source for a script?


-

This newsgroup does not exist (see FAQ). Please do not start threads here.


if it does not exist how can I post to it?
I'm asking a perl question... that has to do with the execution of a
perl script, using the perl binary... how much more perl oriented can
it get? sheesh!
Jul 19 '05 #4
ma**********@users.sourceforge.net (MadHatter) wrote in message news:<92**************************@posting.google. com>...
no****@mail.com wrote in message news:<4d**************************@posting.google. com>...
ma**********@users.sourceforge.net (MadHatter) wrote in message news:<92**************************@posting.google. com>...
is there any command line switch or anything else which would allow me
to use the standard input as the source for a script?
-

This newsgroup does not exist (see FAQ). Please do not start threads here.


if it does not exist how can I post to it?


Some misconfigured newsservers still think it exists.

Google still archives it.

I have written to Google.com support to point out that their service
should warn people before allowing them to post to non-existant
newsgroups.

Perhaps you should write too.

If they get enough people complaining that Google has allowed them to
post to non-existant newsgroups without warning perhaps they'll do
something.
I'm asking a perl question... that has to do with the execution of a
perl script, using the perl binary... how much more perl oriented can
it get? sheesh!


You appear to be halucinating that someone said your question was
off-topic. If this newsgroup had existed your question would have
been on-topic. Although maybe it would have deserved an RTFM response
"perlrun - how to execute the Perl interpreter".

I didn't bother to tell you to RTFM and just gave you the answer.
After all the answer to your question could not have been any shorter,
it was only one character long!
Jul 19 '05 #5
ma**********@users.sourceforge.net (MadHatter) wrote in message news:<92**************************@posting.google. com>...
no****@mail.com wrote in message news:<4d**************************@posting.google. com>...
This newsgroup does not exist (see FAQ). Please do not start threads here.
if it does not exist how can I post to it?


You seem to have overlooked his parenthetical comment.
I'm asking a perl question...


He didn't say you weren't. More people will read your question if you
post in comp.lang.perl.misc, which is the valid newsgroup for perl
questions.

http://dbforums.com/arch/96/2003/1/649376
Yes, on some sites it exists, but it is not a "standard" group
anymore, so
it does not exist on many news servers.

Messages sent to comp.lang.perl are not seen by nearly as many people
as
the suggested groups, and if other people who do not see that group
try to
respond (i.e. if they see it because it's cross posted to a visible
group)
then their response may not arrive at all on any groups because the
error
(from their server's point of view) will prevent the message being
posted.

comp.lang.perl is effectively a private group, just like the ones you
may
have set up at work, or like the local groups set up on a freenet like
this one.
Jul 19 '05 #6
rj******@shell.com (Roy Johnson) wrote in message news:<3e**************************@posting.google. com>...
ma**********@users.sourceforge.net (MadHatter) wrote in message news:<92**************************@posting.google. com>...
is there any command line switch or anything else which would allow me
to use the standard input as the source for a script?


perldoc perlrun

will tell you to give perl the option "-" to read the program from
stdin. Use comp.lang.perl.misc instead of this newsgroup.


lol, I just noticed the - in the first reply, and what I thought was a
reply was his sig. sorry about the tizzy.

thanks for the info. I'll post in the misc next time. thanks all.
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bill Cohagan | last post by:
I'm writing a console app (in C#) and I want to be able to redirect the standard input/output streams when it's run at a command prompt. IOW I want to support the "<" and ">" redirection syntax....
52
by: Gerard M Foley | last post by:
Can one write a webpage which is not displayed but which simply redirects the user to another page without any action by the user? Sorry if this is simple, but I am sometimes simple myself. ...
6
by: Kobu | last post by:
Do the "larger" input functions like scanf, gets, fgets use fgetc to take input or an operating system call function like read() (I know it could be any "way", but I'm trying to find out how it's...
3
by: ES Kim | last post by:
Hi, I am using VC++ .NET 7.0. I'd like to debug my console program, using redirection of input/output for convenience. Help menu tells me it's possible to specify a file name as a command-line...
4
by: Marc Jennings | last post by:
Hi all, I want to run an external app from an assembly. Simple enough... > Process ExtProcess = new Process(); > ExtProcess.StartInfo.FileName = myAppName; > ExtProcess.StartInfo.Arguments =...
17
by: comp.lang.tcl | last post by:
The TCL command I am using will do a command-line action on a PHP script: set cannotRunPHP I have to do it this way as both the TCL script and the PHP script run as CLI. However, "info.php"...
1
by: comp.lang.php | last post by:
require_once("/users/ppowell/web/php_global_vars.php"); if ($_GET) { // INITIALIZE VARS $fileID = @fopen("$userPath/xml/redirect.xml", 'r'); $stuff = @fread($fileID,...
0
by: Fredrik Lundh | last post by:
David Bikard wrote: Was that supposed to be prog_name.py <input_file >output_file ? (< and does i/o redirection; random google link: http://www.ss64.com/ntsyntax/redirection.html
2
kaarthikeyapreyan
by: kaarthikeyapreyan | last post by:
I have a small problem with the input redirection. to search for a particular pattern in all files i have used this command find $dir -type f -print | xargs grep -E -n -w <pattern> | tee my...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.