havenwood changed the topic of #ruby to: Ruby 3.3.5 (3.4.0-preview1) https://www.ruby-lang.org | Logs https://libera.irclog.whitequark.org/ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
cappy has quit [Quit: Leaving]
__DuBPiRaTe__ has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
brokkoli_origin has quit [Ping timeout: 248 seconds]
brokkoli_origin has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
Fridtjof has quit [Quit: ZNC - http://znc.in]
llua has quit [Ping timeout: 252 seconds]
llua has joined #ruby
Fridtjof has joined #ruby
Vonter has quit [Quit: WeeChat 4.4.2]
Vonter has joined #ruby
konsolebox has joined #ruby
grenierm has joined #ruby
tuxcrafter97 has joined #ruby
brokkoli_origin has quit [Ping timeout: 252 seconds]
tuxcrafter has quit [Ping timeout: 256 seconds]
brokkoli_origin has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
Linux_Kerio has joined #ruby
dhruvasagar has joined #ruby
F16 has joined #ruby
F16 has quit [Max SendQ exceeded]
F16 has joined #ruby
F16 has quit [Max SendQ exceeded]
neuroevolutus has joined #ruby
user71 has joined #ruby
F16 has joined #ruby
F16 has quit [Max SendQ exceeded]
F16 has joined #ruby
tuxcrafter58 has joined #ruby
tuxcrafter97 has quit [Ping timeout: 256 seconds]
F16 has quit [Remote host closed the connection]
F16 has joined #ruby
F16 has quit [Remote host closed the connection]
F16 has joined #ruby
F16 has quit [Remote host closed the connection]
F16 has joined #ruby
F16 has quit [Remote host closed the connection]
rvalue has quit [Ping timeout: 260 seconds]
rvalue has joined #ruby
neuroevolutus has quit [Quit: Client closed]
dhruvasagar has quit [Remote host closed the connection]
sam113101 has quit [Ping timeout: 252 seconds]
TomyWork has joined #ruby
sarna has quit [Remote host closed the connection]
sarna has joined #ruby
mattf_ is now known as mattf
whysthatso125070 has quit [Quit: The Lounge - https://thelounge.chat]
whysthatso125070 has joined #ruby
grenierm has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
Inline has joined #ruby
Thanzex0 has joined #ruby
greybeard has joined #ruby
sam113101 has joined #ruby
<isene> debug help; I have a ruby script running another (python) script in backticks (to capture the output of that other script. This works just fine when running my ruby script from the terminal - but it fails when I set cron up to run the ruby script every minute. It specifically hangs on running that python script in backticks. I've searched high and low and checked permissions, etc... But I am missing
<isene> something - some difference between running the script manually and as a cron job. Any ideas?
<isene> FYI; My ruby script is logging into various Gmail accounts, fetching mails to my local imap. The python script (oauth2.py) is used to get a fresh token for oauth login to Gmail.
<mange> How are you running the cron job?
<isene> 'crontab -e' with content; * * * * * /home/geir/bin/gmail_fetch >/dev/null 2>&1
<isene> mange: Thanks for chiming in
<konsolebox> isene: Maybe gmail_fetch requires credentials? You run as root in crontab though? AFAIK
F16 has joined #ruby
<konsolebox> isene: It hangs maybe because it's asking for input when it can't.
<isene> there isn't any input in running that python script; The line goes like this and only gives a token as output: token = `oauth2.py --generate_oauth2_token --client_id=#{clientid} --client_secret=#{clsecret} --refresh_token=#{rehreshtk}`
<isene> I set gmail_fetch to 777 to test that permissions wasn't the issue :/
F16 has quit [Remote host closed the connection]
<konsolebox> Just to be clear I wasn't talking about UNIX permissions when I said "credentials" but gmail's.
<isene> konsolebox: No, the python script handles all credentials
<konsolebox> isene: No local cache stored in a user file is accessed?
F16 has joined #ruby
F16 has quit [Max SendQ exceeded]
F16 has joined #ruby
<isene> konsolebox: Nope
<isene> But thanks for asking
<konsolebox> isene: Try sending stdout and stderr to a file just to see if there are error messages being produed.
<isene> I found it! Changing oauth2.py to python3 /home/geir/bin/oauth2.py did the trick :-D
F16 has quit [Remote host closed the connection]
F16 has joined #ruby
F16 has quit [Max SendQ exceeded]
F16 has joined #ruby
F16 has quit [Ping timeout: 244 seconds]
<mange> I was going to suggest that cron doesn't run your shell init stuff, so you should try your script in "env -i" or similar to see what might be going wrong. I'm glad you found the issue! :)
<isene> mange: And thanks for playing ball :)
dhruvasagar has quit [Remote host closed the connection]
F16 has joined #ruby
F16 has quit [Max SendQ exceeded]
F16 has joined #ruby
F16 has quit [Remote host closed the connection]
gaussianblue has joined #ruby
F16 has joined #ruby
F16 has quit [Client Quit]
F16 has joined #ruby
F16 has quit [Max SendQ exceeded]
F16 has joined #ruby
F16 has quit [Max SendQ exceeded]
Inline has quit [Ping timeout: 265 seconds]
balrog has quit [Ping timeout: 252 seconds]
balrog_ has joined #ruby
mange has quit [Quit: Zzz...]
graywolf has joined #ruby
dhruvasagar has joined #ruby
tuxcrafter58 is now known as tuxcrafter
Rounin has quit [Quit: Rounin]
dhruvasagar has quit [Remote host closed the connection]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
Rounin has quit [Remote host closed the connection]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
wyclif has joined #ruby
chaseit has joined #ruby
Inline has joined #ruby
greybeard has quit [Quit: Leaving.]
wyclif has quit [Quit: leaving]
peebs has joined #ruby
cappy has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
o0x1eef has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
o0x1eef has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
Rounin has quit [Quit: Rounin]
Rounin has joined #ruby
greybeard has joined #ruby
hellstabber has joined #ruby
vasanth has joined #ruby
Inline has quit [Ping timeout: 265 seconds]
vasanth has quit [Quit: Client closed]
o0x1eef has quit [Ping timeout: 252 seconds]
konsolebox has quit [Quit: .]
Rounin has quit [Quit: Rounin]
whysthatso125070 has quit [Read error: Connection reset by peer]
cappy has quit [Quit: Leaving]
o0x1eef has joined #ruby
Vonter has quit [Ping timeout: 244 seconds]
Vonter has joined #ruby
gaussianblue has quit [Quit: leaving]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
polishdub has quit [Ping timeout: 248 seconds]
polishdub has joined #ruby
Inline has joined #ruby
___nick___ has quit [Ping timeout: 252 seconds]
peebs has quit [Quit: Konversation terminated!]
eoli3n has quit [Remote host closed the connection]
eoli3n has joined #ruby
Inline has quit [Ping timeout: 260 seconds]
Linux_Kerio has quit [Ping timeout: 252 seconds]
Pixi` has joined #ruby
Pixi has quit [Ping timeout: 252 seconds]
Pixi has joined #ruby
Pixi has quit [Client Quit]
whysthatso125070 has joined #ruby
Pixi` has quit [Ping timeout: 252 seconds]
user71 has quit [Quit: Leaving]
graywolf has quit [Quit: WeeChat 4.4.2]
neuroevolutus has joined #ruby
__DuBPiRaTe__ has joined #ruby
neuroevolutus has quit [Ping timeout: 256 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
__DuBPiRaTe__ has quit [Quit: Leaving]
__DuBPiRaTe__ has joined #ruby
desnudopenguino1 has joined #ruby
mange has joined #ruby
desnudopenguino has quit [Ping timeout: 265 seconds]
desnudopenguino1 is now known as desnudopenguino
cappy has joined #ruby
hellstabber has quit [Quit: Connection closed for inactivity]
peebs has joined #ruby