12-13-2013
Running a C/C++ program and/or bash script from a server
I wish to be able to give to a client the opportunity to :
0) Turn one of my ubuntu computers into a webserver
1) See a webpage after visiting a url where an external user/client can set a couple of variables (e.g. Number1= ?, Number2=?)
2) By pressing "run" the program runs on my machine
3) On my machine I could or not have a queue system. Some kind or protection should stop the client using a wget like tool to download files and programs on his computer
I have some experience with webpy and I had it working for internal networks. I am after a solution for C/C++ and bash. The framework needs to be able to be used from outside the local network
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
My apologies if this sounds like a stupid question......
but is it possible to call a script that is located on a w2k machine from a csh script bing run on a unix server.
Many thanks
rkap (1 Reply)
Discussion started by: rkap
1 Replies
2. Shell Programming and Scripting
Sorry for all the threads. I am almost done. I ahve a bash script that is launching a diags program then copying the .html over my client. then it does the following line
/opt/firefox/firefox report.html
it launches it fines but the program waits for me to close the window or kill the script.... (2 Replies)
Discussion started by: deaconf19
2 Replies
3. Shell Programming and Scripting
I have my Mac OS X program executing a shell script (a script that copies files to a drive). I want to make it so that the shell script automatically kills itself if it finds that the host .app is not running OR kill itself if the drive that it is copying files to has been unmounted. Right now what... (2 Replies)
Discussion started by: pcwiz
2 Replies
4. Shell Programming and Scripting
Hi all,
I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion.
My problem is sometimes the program takes... (5 Replies)
Discussion started by: newbie_01
5 Replies
5. Shell Programming and Scripting
I'm a bit new to bash programming and I was assigned the job of writing a script that will check to see if a program server is running and to restart the program if it is not up. The script is supposed to check the program every hour (which I have looked up and I believe I know how to do) and send... (3 Replies)
Discussion started by: mcknz
3 Replies
6. Solaris
Hi all,
I have written the following program and run on both T5440 and T5220 on same OS version. I found that T5540 server takes more time than T5220. Please find below the details.
test1.cpp
#include <iostream>
#include <pthread.h>
using namespace std;
#define NUM_OF_THREADS 20... (17 Replies)
Discussion started by: sanjay_singh85
17 Replies
7. UNIX for Dummies Questions & Answers
I have 3 servers A, B, C and server B is having some files in /u01/soa/ directory, these files i want to copy to server C, and i want to run the script from server A.
Script(Server A) --> Files at Server B (Source server) --> Copy the files to Server C(Target Server).
We dont have RSA key... (4 Replies)
Discussion started by: kiran_j
4 Replies
8. Shell Programming and Scripting
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies
9. UNIX for Beginners Questions & Answers
Hello -
I am new to unix... very new. I am running a program at the command prompt:-nohup ./ledger - comptroller_extract 05/11/2018 &
The above runs as expected.
If I put it in a sh script:- current_date=$(date+%m/%d%y)
nohup ./ledger - comptroller_extract $current_date &
This does... (4 Replies)
Discussion started by: MSpeare
4 Replies
10. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
LEARN ABOUT DEBIAN
www::nicovideo::download
WWW::NicoVideo::Download(3pm) User Contributed Perl Documentation WWW::NicoVideo::Download(3pm)
NAME
WWW::NicoVideo::Download - Download FLV/MP4/SWF files from nicovideo.jp
SYNOPSIS
use WWW::NicoVideo::Download;
my $client = WWW::NicoVideo::Download->new(
email => 'your-email@example.com',
password => 'PASSWORD',
);
$client->download("smNNNNNN", &callback);
DESCRIPTION
WWW::NicoVideo::Download is a module to login, request and download video files from Nico Nico Douga.
METHODS
new
$client = WWW::NicoVideo::Download->new(%options);
Creates a new WWW::NicoVideo::Download instance. %options can take the following parameters and they can also be set and get using
accessor methods.
email, password
Sets and gets email and password to login Nico Nico Douga. Required if the User Agent object doesn't have the valid session or cookie
to login to the site.
user_agent
Sets and gets LWP::UserAgent object to use to send HTTP requests to nicovideo.jp server. If you want to reuse the browser Cookie that
has the signed-in state, you can set the Cookie to the UserAgent object here.
# use Safari sesssions
use HTTP::Cookies::Safari;
my $cookie_jar = HTTP::Cookies::Safari->new(
file => "$ENV{HOME}/Library/Cookies/Cookies.plist",
);
my $client = WWW::NicoVideo::Download->new;
$client->user_agent->cookie_jar( $cookie_jar );
download
$client->download($video_id, $file_path);
Prepares the download by logging in and requesting the FLV API, and then download the video file. The second parameter is passed to
LWP::UserAgent's request() method, so you can pass either local file path to be saved, or a callback function.
prepare_download
my $url = $client->prepare_download($video_id);
Prepares the download and returns the URL of the actual video. See eg/fetch-video.pl how to make use of this method.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@cpan.org>
Original download code for Plagger was written by Yusuke Wada and the command line tool written by woremacx.
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
perl v5.10.1 2010-03-26 WWW::NicoVideo::Download(3pm)