Windows-Command line Arguments
am 13.06.2007 16:37:47 von raj esh
--===============0597619572==
Content-Type: multipart/alternative; boundary="0-645072558-1181745467=:68205"
Content-Transfer-Encoding: 7bit
--0-645072558-1181745467=:68205
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Dear Guru's,
=20
Here is my sample script...which i am running on windows.
=20
use strict;
use warnings;
=20
my $result =3D system ( "date");
=20
Now Date command returns me one more command prompt on which i have to =
enter current date(means need to enter another command) how do i enter on=
e more command.
=20
Please help me gurus.=20
=20
Is their any module which can help me ??=20
=20
I have checked perldoc -q system, perldoc -q command. These are little =
confusing . I will surely recheck these if the answer lies with in these.
=20
Correct me if i am not clear on mentioned my problem.
=20
Thanks,
Raj.
=20
---------------------------------
Luggage? GPS? Comic books?=20
Check out fitting gifts for grads at Yahoo! Search.
--0-645072558-1181745467=:68205
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Dear Guru's,
Here is my sample script=
....which i am running on windows.
use stri=
ct;
use warnings;
my $result =3D=
system ( "date");
Now Date command return=
s me one more command prompt on which i have to enter current date(means =
need to enter another command) how do i enter one more command.
iv> Please help me gurus.
iv>Is their any module which can help me ??
> I have checked perldoc -q system, perldoc -q command. T=
hese are little confusing . I will surely recheck these if the answer lie=
s with in these.
Correct me if i am not cl=
ear on mentioned my problem.
Thanks,
=
Raj.
Luggage? GPS? Comic books?
Check out fitting
earch.yahoo.com/search?fr=3Doni_on_mail&p=3Dgraduation+gifts &cs=3Dbz"> gi=
fts for grads at Yahoo! Search.
--0-645072558-1181745467=:68205--
--===============0597619572==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0597619572==--
RE: Windows-Command line Arguments
am 13.06.2007 16:43:45 von Henry Hartley
This is a multi-part message in MIME format.
--===============0980637010==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C7ADC9.3E8717A2"
This is a multi-part message in MIME format.
------_=_NextPart_001_01C7ADC9.3E8717A2
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
-----Original Message-----
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of raj
esh
Sent: Wednesday, June 13, 2007 10:38 AM
=09
=20
Here is my sample script...which i am running on windows.
=20
use strict;
use warnings;
my $result =3D system ( "date");
=20
Now Date command returns me one more command prompt on which i
have to enter current date(means need to enter another command) how do i
enter one more command.
perl -e "system('date < nul');"
=20
Although I don't know why you'd want to do that. There are much better
ways to get the system date.
=20
--
Henry
------_=_NextPart_001_01C7ADC9.3E8717A2
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Message
charset=3Dus-ascii">
align=3Dleft>
face=3DTahoma size=3D2>-----Original Message-----
From:=20
activeperl-bounces@listserv.ActiveState.com=20
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of =
raj=20
esh
Sent: Wednesday, June 13, 2007 10:38 AM
Here is my sample script...which i am running on windows.
use strict;
use warnings;
my $result =3D system ( "date");
Now Date command returns me one more command prompt on which i =
have to=20
enter current date(means need to enter another command) how do i enter =
one=20
more command.
size=3D2>perl=20
-e "system('date < nul');"
size=3D2>
size=3D2>Although I don't know why you'd want to do that. There =
are much=20
better ways to get the system date.
------_=_NextPart_001_01C7ADC9.3E8717A2--
--===============0980637010==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0980637010==--
Re: Windows-Command line Arguments
am 13.06.2007 16:59:11 von anthony.okusanya
This is a multipart message in MIME format.
--===============0593252259==
Content-Type: multipart/alternative;
boundary="=_alternative 005252F2862572F9_="
This is a multipart message in MIME format.
--=_alternative 005252F2862572F9_=
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit
On windows, you can use the /t switch with Date or Time command to display
the date without prompting
Date /T will not prompt you for the new date. I modified your code below.
I am assuming you are trying to get the system date from windows:
use strict;
use warnings;
my $result = `date /t`;
print "Result is $result\n";
Alternatively you can use
my $result=(localtime);
print "My local time is $result\n";
Tony B. Okusanya
"Live Life By Design And Not From Crisis to Crisis"
"raj esh"
Sent by: activeperl-bounces@listserv.ActiveState.com
06/13/2007 09:37 AM
To
activeperl@listserv.ActiveState.com
cc
Subject
Windows-Command line Arguments
Dear Guru's,
Here is my sample script...which i am running on windows.
use strict;
use warnings;
my $result = system ( "date");
Now Date command returns me one more command prompt on which i have to
enter current date(means need to enter another command) how do i enter one
more command.
Please help me gurus.
Is their any module which can help me ??
I have checked perldoc -q system, perldoc -q command. These are little
confusing . I will surely recheck these if the answer lies with in these.
Correct me if i am not clear on mentioned my problem.
Thanks,
Raj.
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
------------------------------------------------------------ ------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation.
============================================================ ==================
--=_alternative 005252F2862572F9_=
Content-Type: text/html;
charset=us-ascii
Content-Transfer-Encoding: 7bit
On windows, you can use the /t switch
with Date or Time command to display the date without prompting
Date /T
will not prompt you for the new date. I modified your code below.
I am assuming you are trying to get
the system date from windows:
use strict;
use warnings;
my $result = `date /t`;
print "Result is $result\n";
Alternatively you can use
my $result=(localtime);
print "My local time is $result\n";
Tony B. Okusanya
"Live Life By Design And Not From Crisis to Crisis"
"raj esh" <sv_rajesh_kumar@yahoo.com>
Sent by: activeperl-bounces@listserv.ActiveState.com
06/13/2007 09:37 AM
|
To
| activeperl@listserv.ActiveState.com
|
cc
|
|
Subject
| Windows-Command line Arguments |
|
Dear Guru's,
Here is my sample script...which i am running on windows.
use strict;
use warnings;
my $result = system ( "date");
Now Date command returns me one more command prompt on
which i have to enter current date(means need to enter another command)
how do i enter one more command.
Please help me gurus.
Is their any module which can help me ??
I have checked perldoc -q system, perldoc -q command.
These are little confusing . I will surely recheck these if the answer
lies with in these.
Correct me if i am not clear on mentioned my problem.
Thanks,
Raj.
Luggage? GPS? Comic books?
Check out fitting gifts
for grads at Yahoo! Search._______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
------------------------------------------------------------ ------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation.
============================================================ ==================
--=_alternative 005252F2862572F9_=--
--===============0593252259==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0593252259==--