No I am not forgetting ssh there i am creating directory in local Unix machine.
But what is the username@host at the beginning for? That command won't work.
Quote:
I didn't get exactly your answer.
# chown :apache /dirname ## i didn't gat apache here what does it means here.
apache is the file group. apache needs write permissions to the folder to mkdir inside it. so you change the group to apache, and give apache write-access.
Quote:
where i have to do these actions :
On terminal or in the .cgi script ?
In terminal. You only need to do it once.
Quote:
what is the alternative for SSH.
You don't need an alternative to ssh. You need to give ssh the things it needs to work without a password. It'd also help to run ssh in the first place.
You did get ssh working without a password, yes? If not, you're going to have to do so, because there's no way for a user to interactively type in a password over CGI.
i want to do it via webpage . Is your script would be able to call via .html file ?
---------- Post updated at 12:08 AM ---------- Previous update was at 12:04 AM ----------
one thing i want to ask more. that for SSH . what to do with id_rsa files and how. actually i dont know about this thing.
and where to place and what to place so that apache can read???
Can you give me an example.???
I know you want to do it via webpage. That's why you have to worry about all these permissions -- the script is being run by the webserver, not by you. It can only access things belonging to the apache group or the apache user. It it doesn't have access to your files, folders, or keys. If you make them belong to apache, or create copies belonging to apache, it can access those.
Yes yes SSH i forgot....
The exact command is:
@array = `ssh username@machine_name 'ls dirname'`; # It is no tgiving list of files available on this directory
sorry i misunderstood you ques.
I don't know to debug the program todaylive.pl program.
plz someone let me know what are the commands I need to know to debug the perl programs to find out the error on it. (3 Replies)
Hi All,
I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet.
I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet.
print "<center><table... (2 Replies)
Hi team,
I have a typical problem with cgi pages in apache webserver in WINDOWS
I am able to execute(display) the pages that are saved in cgi-bin folder.
But I am not able to execute the pages stored in htdocs or other folder other than cgi-bin folder.
Could anyone please let me know how... (1 Reply)
Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My... (3 Replies)
Hi,
I am trying to implement a server monitoring dashboard using cgi scripting. I am planning to run the necessary unix scripts from the web page using cgi. This method works fine for standard unix commands but I am unable to run some external unix commands (like swadm show_processes, swadm... (9 Replies)
I got the below error when using the below code...it seem that perl interpret the "'" in the middle and therefore the pipe is not finished.
perl -wle '
@a=`who| perl -wlane 'print \$F;' | sort -u` ;
chomp @a ;
print @a;
'
the error message in cygwin is:-
perl: No match.
| sort... (12 Replies)
Hello everyone,
I have developed a cgi application on windows. i have created a folder in webapps of tomcat, within that a WEB-INF folder and in that cgi folder.
This cgi folder contains one executable. The web.xml is as follows: <servlet>
<servlet-name>cgi</servlet-name>
... (2 Replies)
Hi,
I want to run a crontab job on solaris 10.5. I have configured the crontab accordingly
10 * * * * /scripts/dbalter.pl >> /scripts/cronout.txt
However this does not work .Then I go to /var/mail/root and find an error in the output:
From root@myserver Wed Feb 4 17:02:00 2009... (1 Reply)
Hi,
I have a shell script with code
. perf.env
cd $QRY_DIR
for SHELL_FILE in sql1
do
export SNAME=$SHELL_FILE
${SCRIPT_DIR}/perf_qry.sh ${SPOOL_DIR} ${DB_ENVNAME} ${NAME} &
RC=$(expr ${RC:-0} + $? )
sleep 60
if
then
echo sysdate>test1
echo query1.txt>>test1
grep -i... (6 Replies)
Hi,
I have a shell script with code
. perf.env
cd $QRY_DIR
for SHELL_FILE in sql1
do
export SNAME=$SHELL_FILE
${SCRIPT_DIR}/perf_qry.sh ${SPOOL_DIR} ${DB_ENVNAME} ${NAME} &
RC=$(expr ${RC:-0} + $? )
sleep 60
if
then
echo sysdate>test1
echo query1.txt>>test1
grep -i... (0 Replies)