Re: problem with tail -f that need to add to each line constant string at the beginning of each line

2011-11-01 Thread dan12341234
Hi what if i want to put this commands on a script ssh -n server1 'tail -f /var/log/syslog | sed --unbuffered "s/^/$(hostname): /"' >>syslog.tail.out & ssh -n server2 'tail -f /var/log/syslog | sed --unbuffered "s/^/$(hostname): /"' >>syslog.tail.out & can you advise Thanks a lot Dan

bash cgi script dosent works from the browser

2011-10-29 Thread dan12341234
im writing a bash cgi on a new installed suse 11 Apache is working fine becouse when i click the ip on the internet browser i get it It works! i have these 3 questions: 1 when im trying to load the page http://server1/hello.cgi it doas not opened, instead it is saved as a file. cat hello.cgi #!/

Re: problem with tail -f that need to add to each line constant string at the beginning of each line

2011-10-29 Thread dan12341234
Thanks Bob this solution is great. Dan Bob Proulx wrote: > > dan12341234 wrote: >> im running 4 scripts that perform ssh and tail -f on a file exist on 4 >> servers and display on the screen. >> (1 script per servers) >> >> ssh server1 tail -f /var/

problem with tail -f that need to add to each line constant string at the beginning of each line

2011-10-29 Thread dan12341234
Hi All im running 4 scripts that perform ssh and tail -f on a file exist on 4 servers and display on the screen. (1 script per servers) ssh server1 tail -f /var/log/apache/access_log ssh server2 tail -f /var/log/apache/access_log ssh server3 tail -f /var/log/apache/access_log ssh server4 tail -f