scripting

script to read input from textbox and output response if input is found or not

I need a script that can read input from a textbox on a webpage and output yes or no (or other words) if the input was found in a .txt file For example, if I have the file of colors located on my website, each separated by ", " and the user puts in "red" and clicks submit, I'd like the next page to say "Yes red is a color". If they in...

Best Practices Server Side Scripting or Web Services

Hello, Let me start off by stating that I am a novice developer, so please excuse the elementary nature of my question(s). I am currently working on a Flex Application, and am getting more and more confused about when to use server side scripting, and when to develop web services. For most of the functionality I am working on, I am ...

jQuery AJAX with remote HTML containing JS

I have a page setup that uses jQuery + AJAX to load content into an accordion frame. It works fine for loading straight text/HTML but I now need to load Javascript along with the HTML. To elaborate, I'm using GalleryView to display images in a photo gallery section of the accordion. When I load the HTML file, however, the scripts aren't...

Can I get around the launch timeout when running scripts from SpringBoard?

I like to write bash shell scripts on my iPhone, put them in an app folder with an icon, plist, etc., so they execute like apps by tapping their icon on SpringBoard. This is not interactive like MobileTerminal since there is no way to get output, but it has its uses. It works great for simple scripts, but long scripts get timed out with...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/k12/ #svn log --revision "HEAD" /var/www/code/ | head -2 | tail -1 | awk '{print $1}' > /var/www/path/version.txt # upload the files rsync ...

[Unix Query] Command/Script for Accurate command HISTORY?

Hi Is there some command/script to know “EACH & EVERY” command executed on a solaris machine (with timestamp if possible) when multiple users are logged in with “SAME USERID & PASSWORD”? history command is not accurate. It just shows the history of commands executed by that user or sometimes few more but it is not accurate when the s...

Korn Shell Printf - Padding a string

I'm attempting to write a Korn Shell function that uses printf to pad a string to a certain width. Examples: Call padSpaces Hello 10 Output 'Hello ' I currently have: padSpaces(){ WIDTH=$2 FORMAT="%-${WIDTH}.${WIDTH}s" printf $FORMAT $1 } Edit: This seems to be working, in and of itself, but when I ...

linux iterate over files in directory

I'm trying to iterate over each file in a directory. Here's my code so far. while read inputline do input="$inputline" echo "you entered $input"; if [ -d "${input}" ] then echo "Good Job, it's a directory!" for d in $input do echo "This is $d in directory." done exit my output is always just one...

Using a Ruby script to login to a website via https

Alright, so here's the dealio: I'm working on a Ruby app that'll take data from a website, and aggregate that data into an XML file. The website I need to take data from does not have any APIs I can make use of, so the only thing I can think of is to login to the website, sequentially load the pages that have the data I need (in this ca...

Is it possible to write a webpage-checking script and run it from a free server?

Hello everybody!!! I am sorry if my question is silly and not at the right place. I know it's possible to write a script (in any programming language) that would check some webpage every 20 minutes, record its HTML code (source) and store it in some file. I also it's also possible to run it from my computer. But what if I can't keep m...

What does it mean "to write a web service"?

Hello everybody, I just asked a question about whether it was possible to write a web-page-checking code and run it from free web server, and one supporter answered and said that it was possible only if I run "a web service" as simple script won't do that. He also suggested that I used Google App Engine service. I wonder what does it me...

How to convert css long to css one line style with Notepad++

from style that looks like this: ul#menu { padding: 0 0 2px; position: relative; margin: 0; text-align: right; } to: ul#menu { padding: 0 0 2px; position: relative; margin: 0; text-align: right; } Is there auto plugin, or script? ...

Are there any good Pascal Script resources/documentation ?

I started playing around with Pascal Script today and I cannot find any good documentation. I found these (one, two) articles. The are helpful but they are just examples. edit: Separated this into two questions. New question is here. ...

How can I get Pascal Script to recognize the 'create' and 'free' functions when importing a custom class?

I am having a problem with the example from this article. The article explains how to import your own classes so they can be called from a Pascal Script. I am importing my custom class but cannot get Pascal Script to recognize the 'Create' and 'Free' functions. My plugin: TMyPsPlugin = class public procedure PrintMessage(cons...

Can a script be automated after a commit on Perforce?

We use Perforce at work, and routinely keep software projects in the repository. In general creators follow the normal Perforce flow, BUT we also have a class of users, who doesn't have any need to edit the files but only read them. Currently we use P4Web but that requires the user so download each file individually to reassemble the p...

Cross frame Javascript - frames loaded from local (file://)

I have two frames loaded from local filesystem with file:// URL. How can I access the document in the left frame from the right frame? parent.leftFrame.document gives: "Error: Permission denied to get property Window.document" I went through several articles explaining Same origin policy for JavaScript but those didn't help with files ...

Perl Script, Fork/Exec, System claims my process has died when in fact only my child process has died

I have a Perl script that does a fork/exec to start another tool in the background and monitor some file system changes while this other tool is running. This seems to work like expected. When I start this Perl script from a shell (e.g. Bash), of course the shell prompt should be gone for as long as my Perl script is running. And it wil...

Programming language to automatically navigate website?

Hi, I've been programming for many years now, and I have just one question. What programming language allows you to create programs which can automatically navigate websites and perform various actions? For example, logging in, browse to a specific page, fill out forms, extract certain text and so on. This is different to a macro as a ...

Easy way parsing Shopzilla Publisher feed or API?

Do any have easy tools for parsing Shopzilla Publisher feed or API? ...

InfoPath form post back error

I'm using XmlFormView control to host InfoPath forms in a web page. When I post back or submit an InfoPath form , on some computers I'm getting "To enable editing the form on this page you will need to enable scripting on your computer" error. I've checked the internet security options and active scripting is enabled (and besides if it...