Jump to content

calling unix / shell scripting experts


Recommended Posts

Posted
Just now, mettastar said:

chesaa na mottaa.. script end avatledu.. ey command adi what is '3' there? 

1- stdout

2- stderr

3- ?

std

Posted
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

Posted
3 minutes ago, mettastar said:

nee lolbob .. em command man adi .. poyi child process ni kill chesthe kaani saavaledu

urike type chesa baby_dc1command work ayindhi ithe baby_dc1

Posted
6 minutes ago, dkchinnari said:

urike type chesa baby_dc1command work ayindhi ithe baby_dc1

:3D_Smiles: neeyavva

Posted
43 minutes ago, dkchinnari said:

urike type chesa baby_dc1command work ayindhi ithe baby_dc1

@3$%

Posted

if u r looking for result of each and every step try printing return code or ur expected result at each step.

Posted
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..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...