Sponsored Content
Top Forums Shell Programming and Scripting Advanced perl help in windows Post 302532825 by srijith on Wednesday 22nd of June 2011 07:18:10 AM
Old 06-22-2011
Advanced perl help in windows

Hi guys,
Im trying to write a perl code to do the following task.

prerequisites:-
1) some media files(say boys.mp3 or gaga.mpeg or snoop.flv) is located in C:\videos\
2) The perl code is also located in same location C:\videos\

when I execute this perl code, it should ask for a number say 100 or 200 or even 5000 for variable n and a filename that is located in C:\videos\
and then it should duplicate that file n number of times and rename all the files with some random filenames.

Say if snoop.flv is given and n=5 then it should duplicate 5 times and rename it
eg:-
aksjg.flv
ojregnos.flv
aeofasjdavsf.flv
wajgtoih.flv
lkfj.flv


please provide your input guys

thanks
 

8 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Anyone know any good perl compilers for windows ?

Does anyone know of a Good perl compiler for windows ? i have searched google.com and a few other search engines but they havent turned up anything good. Any and all help would be appreciated (3 Replies)
Discussion started by: JeZzTeR
3 Replies

2. Shell Programming and Scripting

sending mail using perl through windows

Hi all this is the code which i tried executing in windows environment to send a test mail. # Perl script to send mail on deliver complete. package SendMail; use Config; use Mail::Send; @ISA = qw(Mail::Send); sub open { my $me = shift; my $how; # How to send mail my $notused; my... (13 Replies)
Discussion started by: victorvvk
13 Replies

3. Shell Programming and Scripting

Perl for Unix & Windows

Hi Even though this is unix forum, iam posting this thread as iam not sure of which forum should i post this too. I understand perl can be used in unix environment and i have used the same for automation of my processes. Eg: Open a file search the text string replace the text string close... (9 Replies)
Discussion started by: kenkanya
9 Replies

4. Shell Programming and Scripting

FTP From UNIX to WINDOWS Using PERL

Hi All, I have to write a PERL script in which I have to FTP results from UNIX to Windows Desktop. How can I do this using PERL? Thanks (1 Reply)
Discussion started by: kunal1514
1 Replies

5. UNIX for Dummies Questions & Answers

Need help configuring Active Perl on Windows Vista.: Perl Scripting on Windows

Hi All, Need help configuring Active Perl on Windows Vista. I am trying to install Active Perl on Windows Vista. The version of Active Perl i am trying to install is : ActivePerl 5.10.1 Build 1006 After installing it through cmd, When i try to run perl -v to check the version, i get the... (2 Replies)
Discussion started by: Vabiosis
2 Replies

6. UNIX for Dummies Questions & Answers

How to Perl Code in Windows?

I got this perl code for solaris from tyler_durden Please help me to run the same on windows as i am unable to install date::calc program on unix perl -F, -M"Date::Calc qw(Add_Delta_DHMS)" -lane ' if ($ARGV eq "file2") { $os{$F} = $F.join($F, unpack("A2A2",$F)); } else { ... (1 Reply)
Discussion started by: ssantoshss
1 Replies

7. Windows & DOS: Issues & Discussions

Windows Advanced Options Menu

I dual boot between Windows XP and Linux Mint. I am trying to get the Windows Advanced Options Menu to show up. Normally you would press f8 to make this happen when your computer is booting. With a dual boot it makes it way more complicated. If you press f8 when your computer first starts it does... (3 Replies)
Discussion started by: cokedude
3 Replies

8. Shell Programming and Scripting

perl script to traceroute an IP from windows

I am writing a perl code(windows) to traceroute IP address and to print the output. I had executed the below code which was taken from cpan modules #!C:/perl/bin/perl.exe use Net::Traceroute; $tr = Net::Traceroute->new(host=> "google.com"); if($tr->found) { my $hops = $tr->hops; if($hops... (4 Replies)
Discussion started by: giridhar276
4 Replies
MINIDLNA.CONF(5)						File Formats Manual						  MINIDLNA.CONF(5)

NAME
minidlna.conf -- MiniDLNA server configuration file SYNOPSIS
/etc/minidlna.conf DESCRIPTION
minidlna(1) reads configuration options from the system-wide configuration file /etc/minidlna.conf, or the file specified with -f on the com- mand line. The file contains keyword-argument pairs, one per line. Lines starting with '#' and empty lines are interpreted as comments. The possible keywords and their meanings are as follows: album_art_names List of filenames to check for when searching for album art cache, separated by forward slashes ('/'). db_dir Path to the directory minidlna should use to store its database and album art cache. Uses /var/lib/minidlna by default. enable_tivo Set to 'yes' to enable support for streaming JPEG and mp3 files to a TiVo supporting HMO. Set to 'no' otherwise. friendly_name Customize the name that the minidlna server sends to clients. inotify Set to 'yes' to enable inotify monitoring of the files under media_dir to automatically discover new files. Set to 'no' to disable inotify. listening_ip IPv4 address minidlna should listen on. log_dir Path to the directory where the log file should be stored. Defaults to /var/log. log_level Defines down to which level of importance messages should be logged. Must be one of ``off'', ``fatal'', ``error'', ``warn'', ``info'' or ``debug'', listed here in order of decreasing importance. ``off'' turns off logging messages entirely, ``fatal'' logs the most critical messages only, and so on down to ``debug'' that logs every single messages. media_dir Path to the directory containing the media files the minidlna server should share. Use this option several times if you have more than one directory to share. To restrict a path to one specific media type, you can use the following syntax: the letter 'A', 'V' or 'P', followed by a comma (',') followed by the path. The meaning of the first letter is as follows: o 'A' for audio files; o 'V' for video files; o 'P' for image files. For example, if you want to include only video files located under the /opt/media/videos directory, you would use media_dir=V,/opt/media/videos. After making changes to this option, you need to rebuild the database. If you use an init script to start/stop minidlna, then you should run (as root) service minidlna force-reload. Otherwise, just add -R to your usual minidlna command line (minidlna [...] -R). minissdpdsocket Path to the MiniSSDPd socket, if you want to use minidlna together with MiniSSDPd. Defaults to /run/minissdpd.sock. model_name Set the model name reported to clients. Defaults to ``Windows Media Connect compatible (MiniDLNA)''. model_number Set the model number reported to clients. network_interface Network interface to bind to. notify_interval Set the notify interval, in seconds. The default is 895 seconds. port Port for HTTP traffic. Defaults to port 80. presentation_url Define the presentation URL. root_container Use a different container as the root of the tree exposed to clients. The possible values are: o '.' to use the standard container (this is the default); o 'B' to use the ``Browse Directory'' container; o 'M' to use the ``Music'' container; o 'V' to use the ``Video'' container; o 'P' to use the ``Pictures'' container. If you specify 'B' and the client device is audio only, then ``Music/Folders'' will be used as the root container. serial Set the serial number reported to clients. strict_dlna Set to 'yes' to strictly adhere to DLNA standards. This will allow server-side downscaling of very large JPEG images, which may hurt JPEG serving performance on (at least) Sony DLNA products. Set to 'no' otherwise. FILES
/etc/minidlna.conf System-wide default configuration file. SEE ALSO
minidlna(1) Debian July 21, 2011 Debian
All times are GMT -4. The time now is 02:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy