How to redirect all logs to a file from initLicode.sh?

Hi,
It’s nice to see all the logs initLicode.sh write (erizo?), but it would be
nice if it would go into a log file.
While I could do that easily for initBasicExample.sh by using:
./licode/initBasicExample.sh >> licode/basicexample_log

I couldn’t do the same with initLicode.sh because that is calling other
services, so I would need to go down to each and add this. Is there a
built-in way in Licode already to get all the logs to some log files?

Thanks

Thanks, but I have no problem keeping the logging up after closing the
console even with
./licode/scripts/initLicode.sh >> ./licode/initLicode.log 2>&1
./licode/scripts/initBasicExample.sh >> ./licode/initBasicExample.log 2>&1On Friday, August 1, 2014 10:03:51 AM UTC-4, Konstantin Aleksandrov wrote:

Consider also
nohup ./licode/scripts/initLicode.sh &

This will make able to close the parent process (the console for example)
still having Licode running in background and all its logs will be dumped
into nohup.out file created in the same directory.

On Thursday, July 31, 2014 9:46:02 PM UTC+2, evk0...@gmail.com wrote:

Thanks, that is perfect.
I will use the below (>> so it doesn’t overwrites the previous log after
a restart):

./licode/scripts/initLicode.sh >> ./licode/initLicode.log 2>&1
./licode/scripts/initBasicExample.sh >> ./licode/initBasicExample.log 2>&1

On Thursday, July 31, 2014 7:56:54 AM UTC-4, Sergio Gómez wrote:

I use:

./licode/scripts/initLicode.sh > initLicode.log 2>&1
./licode/scripts/initBasicExample.sh > initBasicExample.log 2>&1

I think I get all logs in both files.

Sergio.

El miércoles, 30 de julio de 2014 02:33:07 UTC+2, evk0...@gmail.com escribió:

Hi,
It’s nice to see all the logs initLicode.sh write (erizo?), but it
would be nice if it would go into a log file.
While I could do that easily for initBasicExample.sh by using:
./licode/initBasicExample.sh >> licode/basicexample_log

I couldn’t do the same with initLicode.sh because that is calling other
services, so I would need to go down to each and add this. Is there a
built-in way in Licode already to get all the logs to some log files?

Thanks

Thanks, that is perfect.
I will use the below (>> so it doesn’t overwrites the previous log after a
restart):

./licode/scripts/initLicode.sh >> ./licode/initLicode.log 2>&1
./licode/scripts/initBasicExample.sh >> ./licode/initBasicExample.log 2>&1On Thursday, July 31, 2014 7:56:54 AM UTC-4, Sergio Gómez wrote:

I use:

./licode/scripts/initLicode.sh > initLicode.log 2>&1
./licode/scripts/initBasicExample.sh > initBasicExample.log 2>&1

I think I get all logs in both files.

Sergio.

El miércoles, 30 de julio de 2014 02:33:07 UTC+2, evk0...@gmail.com escribió:

Hi,
It’s nice to see all the logs initLicode.sh write (erizo?), but it would
be nice if it would go into a log file.
While I could do that easily for initBasicExample.sh by using:
./licode/initBasicExample.sh >> licode/basicexample_log

I couldn’t do the same with initLicode.sh because that is calling other
services, so I would need to go down to each and add this. Is there a
built-in way in Licode already to get all the logs to some log files?

Thanks

Consider also
nohup ./licode/scripts/initLicode.sh &

This will make able to close the parent process (the console for example)
still having Licode running in background and all its logs will be dumped
into nohup.out file created in the same directory.On Thursday, July 31, 2014 9:46:02 PM UTC+2, evk0...@gmail.com wrote:

Thanks, that is perfect.
I will use the below (>> so it doesn’t overwrites the previous log after a
restart):

./licode/scripts/initLicode.sh >> ./licode/initLicode.log 2>&1
./licode/scripts/initBasicExample.sh >> ./licode/initBasicExample.log 2>&1

On Thursday, July 31, 2014 7:56:54 AM UTC-4, Sergio Gómez wrote:

I use:

./licode/scripts/initLicode.sh > initLicode.log 2>&1
./licode/scripts/initBasicExample.sh > initBasicExample.log 2>&1

I think I get all logs in both files.

Sergio.

El miércoles, 30 de julio de 2014 02:33:07 UTC+2, evk0...@gmail.com escribió:

Hi,
It’s nice to see all the logs initLicode.sh write (erizo?), but it would
be nice if it would go into a log file.
While I could do that easily for initBasicExample.sh by using:
./licode/initBasicExample.sh >> licode/basicexample_log

I couldn’t do the same with initLicode.sh because that is calling other
services, so I would need to go down to each and add this. Is there a
built-in way in Licode already to get all the logs to some log files?

Thanks

I use:

./licode/scripts/initLicode.sh > initLicode.log 2>&1
./licode/scripts/initBasicExample.sh > initBasicExample.log 2>&1

I think I get all logs in both files.

Sergio.El miércoles, 30 de julio de 2014 02:33:07 UTC+2, evk0...@gmail.com escribió:

Hi,
It’s nice to see all the logs initLicode.sh write (erizo?), but it would
be nice if it would go into a log file.
While I could do that easily for initBasicExample.sh by using:
./licode/initBasicExample.sh >> licode/basicexample_log

I couldn’t do the same with initLicode.sh because that is calling other
services, so I would need to go down to each and add this. Is there a
built-in way in Licode already to get all the logs to some log files?

Thanks