Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

UNIX COMMAND OUTPUT TO MY FILE

I want to output all the Unix command into spectral.txt file.  I am typing
./ops -l all -v tier3 >spectral.txt
and when i run this command its not going anywhere and when I run this command without >spectral.txt it runs but its not saving my results anywhere and because its a 2hr comman run, I need to save it in afile.

Please help.
UNIX COMMAND
0
zohra01
Asked:
zohra01
  • 4
  • 3
1 Solution
 
amit_gCommented:
Did you wait 2hr for the command to finish? You may want to run in background.

./ops -l all -v tier3 >spectral.txt &
0
 
zohra01Author Commented:
It is still giving me error:
Use of unintialized value in concatenation (.) or string at /export/home/tpadmin/OpsTool/ops
0
 
amit_gCommented:
and it doesn't give any error when you run it without redirection i.e. (>spectral.txt)?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
zohra01Author Commented:
Yes
0
 
amit_gCommented:
Same command line with the same flags i.e. (./ops -l all -v tier3)?

What do you get then you do

file ./ops
0
 
zohra01Author Commented:
I have bunch of .csv & .txt files and I am running report on the whole market.  the only problem is the output file. So when I run it it takes live coordinates from a real Site and output on the screen and i want that output because within 2 hour more then half of the part is lost.
actual line is:

./OpsTool_R6_v6 -l all -v tier3
0
 
amit_gCommented:
What is the output of

file ./OpsTool_R6_v6

and

tty

When you run this program without redirection, does it produce formatted output on the screen? If so, it needs the screen to produce the output and if you redirect, it would give error. You may need to contact the provider of this application or check the manual to see if they have provided any command line switch or some other way to send the output to a file.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now