Mar 26, 2012 #1 ashish061291 Programmer Joined Jan 30, 2012 Messages 11 hi... How can I create a directory named "/tmp/abc/xyz" from my perl code. Thanks..
Mar 26, 2012 #2 MillerH Programmer Joined Oct 20, 2006 Messages 919 Location US Just read the following. It will also explain how to recursively create a directory: http://perldoc.perl.org/functions/mkdir.html - Miller Upvote 0 Downvote
Just read the following. It will also explain how to recursively create a directory: http://perldoc.perl.org/functions/mkdir.html - Miller
Mar 26, 2012 Thread starter #3 ashish061291 Programmer Joined Jan 30, 2012 Messages 11 Actually through my perl code I am generating some files and I want to store them at a particular location in "/tmp" directory. So how can I achieve that ?? Upvote 0 Downvote
Actually through my perl code I am generating some files and I want to store them at a particular location in "/tmp" directory. So how can I achieve that ??
Mar 27, 2012 #4 Annihilannic MIS Joined Jun 22, 2000 Messages 6,317 Location AU What part are you having a problem with? Any error messages? Any code? Annihilannic [small]tgmlify - code syntax highlighting for your tek-tips posts[/small] Upvote 0 Downvote
What part are you having a problem with? Any error messages? Any code? Annihilannic [small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
Mar 27, 2012 Thread starter #5 ashish061291 Programmer Joined Jan 30, 2012 Messages 11 I am calling blktrace tool from my Perl code. The output of this tool gets saved on the current directory. From my perl code I want to go to "/tmp/xyz" directory. I know on terminal i can achieve it by "cd /tmp/xyz". But then how to do it from my perl code ?? Upvote 0 Downvote
I am calling blktrace tool from my Perl code. The output of this tool gets saved on the current directory. From my perl code I want to go to "/tmp/xyz" directory. I know on terminal i can achieve it by "cd /tmp/xyz". But then how to do it from my perl code ??
Mar 28, 2012 #6 MillerH Programmer Joined Oct 20, 2006 Messages 919 Location US http://perldoc.perl.org/functions/chdir.html or http://perldoc.perl.org/File/Copy.html qw(move) - Miller Upvote 0 Downvote
http://perldoc.perl.org/functions/chdir.html or http://perldoc.perl.org/File/Copy.html qw(move) - Miller