LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2005, 11:55 AM   #1
TubeScreamer
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
Command to forward files to folder


This might be an incredibly dumb question... but I was wondering if there was anyway that when you run a program, you can automatically put the files that the program makes into a specified folder. For instance:

mpiexec -n 2 /*arguments*/ /*put something here?*/

Is there something I can put at the end of the command to tell it to put the files that the program creates into a specific folder? Thanks for your help.
 
Old 08-03-2005, 01:08 PM   #2
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Do you mean the output of the program?

In which case you should read up on stream redirection...

mpiexec -n 2 /*arguments*/ /*put something here?*/ > /somedir/somefile

will divert the output to somefile
 
Old 08-03-2005, 01:33 PM   #3
TubeScreamer
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Original Poster
Rep: Reputation: 0
No, I don't mean the output... the program creates a whole bunch of .txt files and I was hoping to divert them to a folder. Any ideas?
 
Old 08-03-2005, 02:57 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
What cyber-worx wrote is still true, text files count as output too! Although, I have no idea how this mpiexec behaves. If it is coded in such a way that the output is sent to a specific folder, than you would have to go into the mpiexec config or binary and change that output. If it just creates the text in the directory you run it in, than you should be easily able to redirect the output.

Peace,
JimBass
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command folder size Ataraxos Linux - Newbie 8 04-03-2005 12:09 PM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 05:52 AM
remove folder from command line demmylls Linux - General 3 02-15-2004 09:52 AM
change folder command eduac Linux - Software 4 07-14-2003 08:01 AM
Linux command to montior a folder saravanan1979 Linux - General 7 06-17-2002 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration