and i was thinking using a loop to go through all the directory to copy necessary files ...
I am ok with manual input password, but not sure how to get the loop when the end of loop must be specific by the user...
nah. I used to use perl to do script, but the system administrator won't install cpan module on one of the system and he suggest me use "rsync" to copy file to different server, where I need to enter password when i try to copy, i try write simple bash script to enter the password but it wont work,
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.
From what I read about cron is: it schedule to run a script, but I need the information from web browser to run the script, so I feel like Cron is not what I need. Did I mistaken something here? I am not quite familiar with Cron
It probably will jump to the same problem when I start the Cron from the web-browser. I can't start Cron from the console since the script needs information from the browser.
In the script i use sleep for about 1 hour and check the existence of file,
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...
Also,
I get this message when I running my program on the web server,
Argument "ssh-rsa" isn't numeric in numeric eq (==) at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Key/RSA1.pm line 94, <FH> line 10.
not sure how to fix that problem, thanks for any input.
Thanks for the input,
I am not the system administrator so I guess my approach of using the web to launch program on different server won't work at all?
Hi,
The error I get is
sh: line 1: 10:43:38,Fri,Oct,6,2006: command not found
mkdir /.ssh: Permission denied at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Util/Hosts.pm line 51
no matter what my command is, even I try the simplest "ls" command, here is the sample code.
my $host = "host1"...
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...
Hi,
Thanks for the input, we decide to use SSH module to run the analyze program on the data server instead of having that program on web-hosting server, and hope it works...
Again appreciate you help
It is accessible via sftp and scp, not sure about ftp,
The situation is we have couple servers, say server1 is doing webhosting and server2 stores large data files that needs to be analyzed,
right now we try to writing a web-script that runs the data-analysis program, which located in...
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,
Yes, never use js to access database, unless you want everyone to have ur password. you can store them in an array or sth,
I think you are on the right track from your 1) 2) 3)
OK I organized a bit, I have a perl script(which create a regular file) in my directory with permission 755, and directory is 755,
If I run the script in unix, the default file permission is 644, and if I try to run it via browser, I get permission denied error.
Then I set the directory...
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.