how to redirect a cmd in linux?

AlanAyala

ADSM.ORG Member
Joined
Feb 20, 2007
Messages
61
Reaction score
0
Points
0
How can I redirect a command in linux, I have tried with

example:

q db > /work/qdb.txt
q db >> /work/qdb.txt

with no results, the cmd says that the command has been redirected but the file was not created y the path specified.
 
This is from dsmadmc, correct?

dsmadmc redirects to the system you're running dsmadmc on.

So if you're running dsmadmc from your local machine, the file is created on the local machine at the path specified. I'm not sure what dsmadmc does if the directory doesn't exist, it may silently fail or report success.

Can you give more context on what you're attempting to do?
 
Thats correct, let me try from the local machine from the dsmadmc.

Best regards,

Alan
 
Also keep in mind, dsmadmc redirects will default to the directory you are working in.
For example if you were not in the TSM installation directory but in /home or /work for that matter, you file output will be inserted there.
If the file did not get created, take a look at permissions at the directory level as well.

Good luck
 
I usually use:

dsmadmc -id=<admin_user> -password=<password> "query event * *" > /any/path/to/file.output

or better:

dsmadmc -id=<admin_user> -password=<password> -outfile=/any/path/to/file.output "query event * *"

(on linux environment; on windows replace the path with correct sintax, ie: C:\path\to\file.txt).

Hope this helps.
Regards
 
Back
Top