Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 26th, 2002, 01:15 AM
adputra adputra is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Kuala Lumpur, MY
Posts: 18 adputra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question redirecting...

i am a little bit confuse of redirecting command.

If i run this direct in msdos command prompt, the output is dump inside the file specified.

dir c:\ > "c:\dir.txt"

BUT, i f i type this command line using 'run' from start menu, the output i want to redirect goes to a window rather than inside the file i have specified.

Why is it .... can anyone help me...

Reply With Quote
  #2  
Old September 10th, 2002, 05:50 PM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
I get an error when I run the command from a run dialog under XP. What OS are you using? Generally, I've found that using redirecting or "piping" under a windows system is highly unreliable. In some contexts, it seems to work like it should, in others, it fails mysteriously and without error.

Reply With Quote
  #3  
Old September 10th, 2002, 08:17 PM
adputra adputra is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Kuala Lumpur, MY
Posts: 18 adputra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
after a long time, somebody answered to this. TQ ctb...
I'm using win2k os. No wonder you have an error because 'dir' is prompt command. Acctually i don't want exactly to run 'dir', but another application, which is 'mysqldump'. After i try and error, i've found this...
If i want to run from run start menu, i need to write this

cmd /c "mysqldump plot > dump.sql" rather than only this....
mysqldump plot > dump.sql

is this a correct thing??

Reply With Quote
  #4  
Old September 10th, 2002, 08:29 PM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0


Yea, that works on XP.

In particular, I was referring to using redirect within an application or script on NT.

For example, if I execute this perl code:
Code:
`dir "c:/stupid_directory.txt"`

Then IN THEORY, I believe that should create a file and write the directory contents to it (those backticks in perl mean "execute this shell program" which is a lot like typing it at the command prompt)... but it doesn't... it just makes an empty file calld "stupid_directory.txt".. never did figure out why.. just kludged it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > redirecting...

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap