Is that OK to leave a small endless loop script running on server?

Let’s find an answer to "Is that OK to leave a small endless loop script running on server?". The most accurate or helpful solution is served by Server Fault.

There are ten answers to this question.

Best solution

Is that OK to leave a small endless loop script running on server?

Looks like I need to update the full scenario here for all. Our users need to pick up whatever they need from our file server to sync to remote location, but users have limited permissions on file server to move files around. so here is my task: create a tool that user can use to pickup data and sync to remote location. DFS and 3rd party tools are not options, must be codes made by our own and everything must be running on background. Here is my way to do it and it is working now. I have made...

Answer:

As a general alternative to this: put your script in Task Scheduler and trigger it every minute, two...

Read more

Root Loop at Server Fault Mark as irrelevant Undo

Other solutions

An odesk contractor appears to have added a script to my site.  I want to be fair, is there any way this is a mistake?

He was modifying an existing site.  The site he created caused several words on my page to appear hyperlinked and when you moused over a little advertising window appeared.  My site did NOT do this before.  I commented out a script that was not on the...

Answer:

data.htm is an entry point and run.js contains the actual code to add underlined ads as well as what...

Read more

Deep Joy Majumdar at Quora Mark as irrelevant Undo

Posting to Facebook via Cron and PHP

How do I post to Facebook using a PHP script that is running off a cron job, instead of in my browser? Howdy, Ok, so I know there is a lot of information out there on the basic idea but my Googling keeps revealing information that is either contradictory...

Answer:

I'm not exactly sure what you want to post on Facebook, but there's a possibility you might be able...

Read more

Jezztek at Ask.Metafilter.Com Mark as irrelevant Undo

Perl & Unix - quick qstn

So a couple weeks ago I explained something I was trying to do. I have a site that periodically pulls headlines off certain web sites, then indexes them for display on my site. It does this via two scripts -- one which 'pulls' the html of the various...

Answer:

First of all, in order to kill a running command, you must know what the Process ID (PID) is. The pidof...

Read more

tjsnod-ga at Google Answers Mark as irrelevant Undo

How can I run a Pig script in Oozie if I've installed Oozie-4.0.0 in Hadoop-2.2.0?

I tried with examples in oozie only java samplemapper and sample reducer class runs correctly. if i am trying am trying to run a example pig script or hive or oozie or any java mapreduce program i am getting the below error: My problem is while executing...

Answer:

The YARN piece in your log is just an INFO, you can ignore that. The piece of interest is in your job...

Read more

Debarchan Sarkar at Quora Mark as irrelevant Undo

Need a re-write of a Java / Python Spider

Specifically for efn-ga, however, as he may not want to do it, everyone with Java and Python skills is welcome to give it a go. I need a re-write of a Java / Python spider that I wrote myself. I've been tweaking it off and on as time permits, however...

Answer:

Dear coolguy90210, Among the posts you made above after I had posted my multi-threaded Spider code...

Read more

coolguy90210-ga at Google Answers Mark as irrelevant Undo

[Linux VPS] Process running 201% CPU Usage.?

I run an Ubuntu 64Bit VPS. I was running a Minecraft (Bukkit) server. Somebody attacked my server and I didn't notice. I went to use a command and it said 'Fork: Not enough allocated memory". My first thought: "Lolwut". Anyways, I typed...

Answer:

That could well be correct for a multi-threaded application, and Java makes threads programming relatively...

Read more

Saviour at Yahoo! Answers Mark as irrelevant Undo

What is the best WordPress plugin to stop robots which use a script to write comments as if they were human?

These robots seem to exist for the sole purpose of getting a commercial entered by user name and/or website address.  Some idiot fed the following script to a buggy program, which didn't randomly select between the alternatives, but included them all...

Answer:

Install Akismet plugin which will help you prevent spam

Read more

Shahzeb Qureshi at Quora Mark as irrelevant Undo

Mine craft server help?

Ok so I have my server up and running but I want to be able to fly, spawn in items and not die but everyone else is a normal player. How can i do this? and i would also like a currency so could you also leave me a link fot the plug in thanks ;)

Answer:

The only way to fly, spawn with items, not die is to have plugins for it. "leave me a link for...

Read more

Joe at Yahoo! Answers Mark as irrelevant Undo

how to get apache called python scripts working

how do I get apache to call local python script that calls modules that are in a different place? Ok, first off, please excuse my lack of understanding of all things apache. So, I currently have a python script that is being called from a php page, and...

Answer:

.pth files are how I do this. This page has some info, and this is the money-quote:The most convenient...

Read more

brent_h at Ask.Metafilter.Com Mark as irrelevant Undo

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.