
nibalan
Novice
Jun 9, 2011, 5:32 AM
Post #1 of 1
(111 views)
|
|
No such file or directory error
|
Can't Post
|
|
start.pl contains: system("/ws/nibalan/submain.pl"); submain.pl contains: system("/ws/nibalan/submanual.pl") submanual.pl contains: open(INPUT, "/users/$login/input"); open(MANUALANS, ">/users/$login/manualans.pl"); - - some writing into manualns.pl file The above code works fine for me. input and manualans.pl file are created in /users/$login directory. Now I thought of creating a directory under /users/$login and create all the above files under it. Modified code: start.pl contains: mkdir "/users/$login/$viewtag", 0777 unless -d "$viewtag"; system("/ws/nibalan/submain.pl"); submain.pl contains: system("/ws/nibalan/submanual.pl") submanual.pl contains: open(INPUT, "/users/$login/$viewtag/input"); open(MANUALANS, ">/users/$login/$viewtag/manualans.pl"); - - some writing into manualns.pl file Now te directory got created successfully and input file also got created but manualans file is not getting created. I get the error No such file or directory. I have given the absolute path correctly. Also tried to manually change the permission of directory to 777. Still no use. Can you please help out?
|