We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

not able to save docker command output in a file

Prasenjit Dutta
on
81 Views
Last Modified: 2017-07-01
Hi,

I am trying to save docker stats value into a csv file. when I tries the following command, it doesn't save any value to the file, but if i just try the same command, it prints the required value, could you please look and let me know what is the issue with that

timeout 10s docker stats --format "{{.Name}},{{.CPUPerc}},{{.MemUsage}},{{.NetIO}},{{.BlockIO}},{{.MemPerc}}" | awk '{now=strftime("%d %T,"); print now $0}' >> dockstts_timestam1.csv
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks to all....got it resolved....
MURUGESAN NApplication Development and Automation Management
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
MURUGESAN NApplication Development and Automation Management
CERTIFIED EXPERT

Commented:
1. Resolved and informed to use full path for any command being used..
2. Query inactive for more than 14 days.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.