similar to: Cronjob / .rb help clearing session table (new to cronjobs)

Displaying 20 results from an estimated 200 matches similar to: "Cronjob / .rb help clearing session table (new to cronjobs)"

2006 Jul 23
4
has_many AND has_many :through ?
Hi, I am working on a scheduling app and I have a perpelextion (new word). I am wondering if the problem is my data model I have Users. Users can create Events. Users can be invited to Events created by other Users. So... user.rb class User < ActiveRecord::Base has_many :invitations # invitations to other users'' events has_many :events, :through => :invitations # all events
2006 Jun 22
4
Can I peek at all "active sessions"?
My users need to login to run the app I''m building. I''d like to give them an "Other users currently active:" piece of information. I could track it myself in the database based on login/logout, but that doesn''t really count for people just leaving the computer logged in and never coming back. Does Rails have an API for me to monitor sessions and take a
2006 Jun 22
0
SessionCleanup (clean up sessions within Rails app)
SessionCleanup is a routine to clear out stale sessions from within a Rails application. A Rails application creates a new session for every connection. Over time, this leads to the accumulation of hundreds or thousands of stale session files or session records (if you''re using a database). These sessions are often cleaned out manually or by the use of a cron job. Neither of these
2007 Oct 25
2
Cronjob script with date stamp?
I have a cron job that calls a shell script - the script invokes dump. I'd like to do two things: - Have the script dump the results of the job to a text file. I tried this with /path/to/dump my switches -v >> /home/me/dump.log But that just produced an empty file. - Have the dump file be date-stamped with the date it was executed. Right now, I manually edit the script to change
2002 Jul 03
0
[Bug 334] New: SSH hangs when run via a cronjob (ssh2)
http://bugzilla.mindrot.org/show_bug.cgi?id=334 Summary: SSH hangs when run via a cronjob (ssh2) Product: Portable OpenSSH Version: -current Platform: ix86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: ssh AssignedTo: openssh-unix-dev at mindrot.org ReportedBy:
2002 Dec 05
2
[Bug 334] SSH hangs when run via a cronjob (ssh2)
http://bugzilla.mindrot.org/show_bug.cgi?id=334 ------- Additional Comments From gray.openssh at mailnull.com 2002-12-06 08:58 ------- I will second this. It seems to just hang after a while even though both the server and the client are configured with KeepAlive enabled. It also looks to both sides like the connection is still open. The forwarded ports are still in netstat output but
2003 May 04
0
[Bug 334] SSH hangs when run via a cronjob (ssh2)
http://bugzilla.mindrot.org/show_bug.cgi?id=334 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Additional Comments From dtucker at zip.com.au 2003-05-04
2003 Jul 08
1
[Bug 334] SSH hangs when run via a cronjob (ssh2)
http://bugzilla.mindrot.org/show_bug.cgi?id=334 egarff at omniture.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Additional Comments From egarff at omniture.com 2003-07-09 08:00
2011 Jun 23
2
Chicken and egg question: passwd and cronjob
Hi all, Let's say I activate password expiration for every account (including root) for every 90 days. I understand that cronjob for root will fail when the password expires. The question is, if I setup a cronjob every 90 days to renew the root password like: echo diFficulT123 | passwd --stdin root will it work? I mean at second 1 on the 90th day, which will run first? - The cronjob to renew
2015 Feb 12
0
Cronjob and sudo
On Thu, February 12, 2015 12:32 pm, Matt wrote: > I need to remove empty files out of a directory that are over 6 hours > old so I created this script and put it in cron.hourly. > > #!/bin/sh > cd /var/list > sudo -u matt find /var/list -mmin +360 -empty -user matt -exec rm {} \; > > I want to run it as matt rather than root for just an added bit of > safety. Problem is
2015 Feb 12
0
Cronjob and sudo
On Thu, Feb 12, 2015 at 12:32:12PM -0600, Matt wrote: > I need to remove empty files out of a directory that are over 6 hours > old so I created this script and put it in cron.hourly. For what it's worth, we no longer have requiretty in the package in Fedora, so eventually that change will probably make it down to CentOS. Overall, security benefit vanishingly small and inconvenience
2017 Feb 01
0
Script not running correctly as cronjob
In article <86827d81f1944333ae213f2d3f19856a at 2sic.com>, Daniel Reich <Daniel.Reich at 2sic.com> wrote: > Hi > > I have a script to resign all DNS zones every two weeks. When i run the script from bash, it works like it should. But > when it is executed in cron not. Its starting normal as cronjob: > Feb 1 03:00:01 xxx CROND[20116]: (root) CMD (sh
2009 Jan 28
1
Differences when expire plugin and cronjob?
Hello. I would like to see the differnces between the expire plugin and a cronjob which make a find/delete. Is there performances differences? What's the best to use? I use dovecot 1.1.8. Is expire plugin update the maildirsize and other indexes files? Thanks. Regards, -- -Nicolas.
2010 Nov 24
1
mdbox nightly cronjob
Is 'doveadm expunge -A ALL DELETED' a "safe" command to issue prior to a 'doveadm purge -A'? -- Daniel
2014 Feb 14
1
dsync in a cronjob to replace offlineimap
Hi list, Replacing offlineimap with dsync for IMAP-to-IMAP synchronization (using dovecot 2.1.7) is working great, but now that I upgraded to 2.2.9 I'd like to take advantage of the incremental replication [1]. I don't think having a separate replicator process & notifications suits my configuration, as I want to sync my server with my laptop which is not always on or might be behind
2017 Dec 01
1
Do we really need Solr commit as cronjob?
I am testing Solr FTS on dovecot. Read online that some suggested to run cronjob commit every minute, and optimize once a day. I am using Solr 7.1.0 and I see some configurations: In /etc/default/solr.in.sh: #SOLR_OPTS="$SOLR_OPTS -Dsolr.autoSoftCommit.maxTime=3000" #SOLR_OPTS="$SOLR_OPTS -Dsolr.autoCommit.maxTime=60000" Also in solrconfig.xml: ??? <autoCommit>
2004 Aug 06
0
can´t start liveice with cronjob
Hallo, I have a problem to start liveice with a cronjob. On both machines is running debian 3.0. Both machines are connect via vpn. As server is icecast 1.3.11 running on the nother machine liveice. No GUI. Ihave sometimes problems with the vpn connection, this is the reason why I will frequently kill an restart the liveice process. In the archive list I found some scripts to restart the
2006 Apr 15
1
logwatch from cronjob
Hello, the last 2-3 days i have a saden problem with logwatch wich i call through a cron job. when i ran the cronjob i get this continues error for the script : ---- Use of uninitialized value in concatenation (.) or string at /etc/log.d/scripts/shared/applystddate line 43, <STDIN> line 26062. Use of uninitialized value in concatenation (.) or string at
2011 Feb 28
2
cronjob to intiiate checkdisk ?
Dear all, I'm trying to find a way to automate checkdisk every 1 month on a weekend. in other words i want checkdisk to run every saturday morning. i can of course change the default mount/count though that wont let me control WHEN it will happen. so i need your expert opinion with the following if possible: 1. reboot into single user mode 2. start checkdisk for all disks 3. once done,
2013 Jan 22
2
cronjob not running
i did this from the console crontab -e then i inserted this in my vi editor 10 * * * * curl http://mysite.com/test.php then i exited vi then i did crontab -l and the cron job was listed then i did /sbin/service crond start and i waited for 10 mins to get a message echo to my console. the message is displayed in my browser when the php script(http://mysite.com/test.php) is loaded