Re: Re: Re: Shell script working in command prompt not in jenkins

2012-06-27 Thread Vojtech Juranek
On Tuesday 26 June 2012 19:56:10 Varghese Renny wrote: > My system user is sigma.but i am running jenkins on tomcat6 user and > tomcat6 group. So which user i have to specify in sudeors file. > Thanks then you have to grand sudo for tomcat6 user, as the build process runs under this user (if you

Re: Re: Shell script working in command prompt not in jenkins

2012-06-26 Thread Varghese Renny
My system user is sigma.but i am running jenkins on tomcat6 user and tomcat6 group. So which user i have to specify in sudeors file. Thanks > >

Re: Re: Shell script working in command prompt not in jenkins

2012-06-26 Thread Vojtech Juranek
On Tuesday 26 June 2012 06:28:29 Varghese Renny wrote: > Hi, > > sudo: sorry, you must have a tty to run sudo > > What to do for this erro? comment Defaultsrequiretty :-) if you are getting sudo: no tty present and no askpass program specified make sure, that it run under sigma user. If you

Re: Shell script working in command prompt not in jenkins

2012-06-26 Thread Varghese Renny
Hi, sudo: sorry, you must have a tty to run sudo What to do for this erro?

Re: Shell script working in command prompt not in jenkins

2012-06-26 Thread Vojtech Juranek
make sure that in /etc/sudoers this line is commented out #Defaultsrequiretty On Tuesday 26 June 2012 05:57:41 Varghese Renny wrote: > #!/bin/sh > pid=$(pidof postgres) > echo $pid > sudo kill $pid > pg_ctlcluster 8.4 main start > > > This script is just for killing processid using postgres

Shell script working in command prompt not in jenkins

2012-06-26 Thread Varghese Renny
#!/bin/sh pid=$(pidof postgres) echo $pid sudo kill $pid pg_ctlcluster 8.4 main start This script is just for killing processid using postgres database. This is not working inside jenkins.. Error showing is sudo: no tty present and no askpass program specified sudo: no tty present and no askp