I am writing a bash script that reads different directory by user input, e.g., the user can use
"sh run folder1" or "sh run folder2" to go into different dir to open files.
Since I am a newb to script language and I am not sure how to write this, any suggestion is appreciated.
Hi,
I have a program that ask for user input during process. Right now I want to create a script that can automatically fill in the user input from the script, how should I do that?
Thank you very much.
Hi,
I have a program that ask for user input during process. Right now I want to create a script that can automatically fill in the user input from the script, how should I do that?
Thank you very much.
Hi,
I have a server program running that waits for files arrive and that program needs to be invoke from the web browser.
That waiting time might be up to couple hours, so I have my code as follow,
...
`perl -w wait.pl &`
...
which I think it will run (since I put a & there) but it turns...
Hi all,
I have a web script (located in a web server) that wants to launch the program on another server(data server on the same network). I use Net::SSH::Perl module from CPAN, and it works if I log in to the web server and running the web script from there and fail to launch the program...
for some reason the data files are stored in different server
and I need to access those files, just wonder which module is available to perform this job?
THanks,
Hi Everyone,
In my perl script I need to let the user create a file--that is, I need to set the directory permission to 777, I just wonder how dangerous this would be? (apparently that's the only way to go)
Thanks for any comments.
Hi,
my intent is to switch content around by the dropdown box,
here is the code:
...
<div style="display:none" id="DD">...</div>
...
and have a js which check for this id, and make necessary changes,here is the code:
if (document.formname.selectionname.value== "DD"){...
Below are the script...
It works on the shell, but won't work from a web browser, I think probably the permission issue?
Thank you in advance
#!/usr/bin/perl
#
# final
use CGI;
use strict;
my $a = new CGI;
my $email;
print $a->header();
print $a->start_html(-title =>"order");
print...
I have two different js files, namely validate1.js and validate2.js, each have their own function call validate1() and validate2(), then I include them in the header, so it looks like this:
<head><title>input coordinates</title>
<script src = "validate1.js" type="text/javascript"></script>...
After I move the JS code out of HTML into a file, the function stop working and I have no idea why this happen,
Here is the html code,
<head>
<script src="foo.js"></script>
...
<form ... onsubmit="return check(this)">
//////////////////////////////
//////////////////////////////
here is the...
I am currently working on connecting a C program with perl, but have no idea where to start.
The idea is perl will invoke the C program (an executable file) with certain parameters(just like the linux shell did), and leave the program running alone and finished.
Please give any suggestions...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.