kiladi bullodu Posted September 28, 2016 Report Posted September 28, 2016 Just now, mettastar said: chesaa na mottaa.. script end avatledu.. ey command adi what is '3' there? 1- stdout 2- stderr 3- ? std Quote
mettastar Posted September 28, 2016 Author Report Posted September 28, 2016 1 minute ago, kiladi bullodu said: std Quote
mettastar Posted September 28, 2016 Author Report Posted September 28, 2016 20 minutes ago, dkchinnari said: bash -x script.sh param >logfile.log 2>&1&1>3 nee lolbob .. em command man adi .. poyi child process ni kill chesthe kaani saavaledu Quote
dkchinnari Posted September 28, 2016 Report Posted September 28, 2016 3 minutes ago, mettastar said: nee lolbob .. em command man adi .. poyi child process ni kill chesthe kaani saavaledu urike type chesa command work ayindhi ithe Quote
mettastar Posted September 28, 2016 Author Report Posted September 28, 2016 6 minutes ago, dkchinnari said: urike type chesa command work ayindhi ithe neeyavva Quote
Idassamed Posted September 28, 2016 Report Posted September 28, 2016 43 minutes ago, dkchinnari said: urike type chesa command work ayindhi ithe Quote
harvey Posted September 29, 2016 Report Posted September 29, 2016 if u r looking for result of each and every step try printing return code or ur expected result at each step. Quote
ronitreddy Posted September 29, 2016 Report Posted September 29, 2016 8 hours ago, mettastar said: Hello experts nenu oka script raasa and while executing that script I want each step execution withi in the script to be written into a log file. Tell me how to achieve this I tried this bash -x script.sh param >logfile.log 2>&1 But this is giving me lot of info which i don't need.. Naku ardam kaledu em cheyali ankuntunavo..critical points daggara echo statements pettu ..log file lo log aythadi.. Quote
CheGuevara Posted September 29, 2016 Report Posted September 29, 2016 Try this bash +x script.sh param >logfile.log 2>&1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.