Computing.Net > Forums > Unix > mkdir in korn shell cgi script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

mkdir in korn shell cgi script

Reply to Message Icon

Name: salman.ghani
Date: July 23, 2003 at 03:58:55 Pacific
OS: unix
CPU/Ram: piii
Comment:

hi,
i want to create a directory from my cgi script written in korn shell. but there is no out put. means that this script work for other commands like ls and cd but don't work fo mkdir commands. here is the script i have used

#!/bin/ksh
echo Content-type: text/html
echo ""

/bin/cat
File Output: /home/user1/public_html/text-file.txt


EOM
print "new dir"
cd ../htdocs/clients/
ls -l
mkdir newDir
ls -l
cat

EOM
any help will be really appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: WilliamRobertson
Date: July 24, 2003 at 02:06:21 Pacific
Reply:

Are you saying mkdir fails silently and you want to find out why?

What part isn't working?


0

Response Number 2
Name: Dlonra
Date: July 24, 2003 at 14:59:14 Pacific
Reply:

it may be file/directory permissions - put in an "id" to check who the script is running as


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: mkdir in korn shell cgi script

Read in Korn Shell www.computing.net/answers/unix/read-in-korn-shell/5141.html

using ftp in Korn Shell www.computing.net/answers/unix/using-ftp-in-korn-shell/4148.html

add user from cgi script www.computing.net/answers/unix/add-user-from-cgi-script/5361.html