Programming :: Add Folder To Perl Path?

Jun 8, 2010

I'm the server guy which is why I don't know this, but were staging a new webserver and we use some custom perl scripts and as were moving the site over for testing, apache is blowing a perl error;Can't locate web.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/mcp/htdocs/cgi-bin/newgraph.gif line 11.,Now I can copy that file local, but there are a bunch of things, so the question is how do you globally add a folder to the perl search path

View 1 Replies


ADVERTISEMENT

Programming :: Create A ZIP In Perl Without Storing Path Information?

Mar 1, 2010

I have the following code snippet:

Code:

my $file = 'test/mybigfile';
my $zip = Archive::Zip->new();
my $zipped = $zip->addFile($file);

[code]....

it simply takes a file (in this case, "mybigfile") and creates a ZIP file containing that file only. Now, my problem is that when I go to decompress the ZIP file, it creates the relative (or absolute, depending on case) path of the original file. To make an example:

Code:

$ pwd
/tmp/perl
$ ls -R

[code]....

What I need is *not* to store the path information inside of the ZIP file, so that once I decompress the ZIP file I only get the original one without having paths created.

View 2 Replies View Related

Programming :: Simultaneously Execute All Perl Scripts Within A Folder?

Apr 27, 2011

Is it possible to simultaneously execute all perl scripts within a folder? How?

View 1 Replies View Related

CentOS 5 Server :: Unable To Give "Perl Path" To Run Perl CGI Script

Jun 2, 2011

I am unable to run perl-cgi script in my cent os Apache server. I have used locate perl command in terminal window and it gives following result:

[code]....

tell which is the path to perl for example "usr/bin perl"

View 13 Replies View Related

General :: Get The Path To The Perl Script?

May 1, 2011

I had a problem recently, where a perl script was consuming server resources. I found out it was a perl script by using "top". But it didn't give the path to the script. Nor did ps.Also, ps -ef showed that the process with that pid is /usr/bin/httpd (apache), so it must have been apache serving some perl page I suppose.Is it possible to get the path to currently running perl script, if I only know the process PID of the perl process that is running that script? If so, how? I don't need the path to the perl binary, I need the path to the perl script that binary is currently executing.

View 2 Replies View Related

Programming :: Java Applet Not Loading Image With Relative Path But With Absolute Path / Resolve It?

Jul 17, 2009

Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server

View 2 Replies View Related

Programming :: Can I Get Absolute Path Without Giving A "path" But Inode Number By C

Aug 13, 2010

Does anyone know how to get the path with a inode number by C programming?
Or can I get the absolute path without giving a "path" but a inode number by C?

like this: get_path(unsigned inode);
not such this function: getcwd(".", xxx);
taowuwen@gmail.com

View 7 Replies View Related

General :: Get Last Folder In Path?

Apr 12, 2011

I am trying to zip a directory but when I zip and unzip it, it contains the whole path of the variable "album". I would just like to zip the last folder in the path. Here is what I have now. I tried basename but that didn't seem to work, possible I just can't make it work right.

Code:
#!/bin/sh
album=/var/www/hfandt.com/artists/*/*

[code]...

View 14 Replies View Related

General :: Perl Script For Latest File From Folder

Jul 31, 2009

i want to get the latest file name from a directory, how can i do with perl script. In other words, how to sort the contents of a folder on the basis of time and capture the latest file using perl script,

View 6 Replies View Related

Ubuntu :: Configure Correct Path To Folder?

Jul 3, 2010

My downloads are navigating to my home folder but not being deposited into the download folder as you can see by the screen shot . I don't know how to configure the correct path to the folder

View 2 Replies View Related

Ubuntu :: How To Find Put The Mount Path Of A Folder

Aug 22, 2010

I mean I have a folder on my root /share and I want to find out how much free space do I have left on the hdd, problem is I have 4 HDD and I don't know if /share is mounted on / or where ..... what is the command line?

View 2 Replies View Related

Ubuntu :: Incorrect Folder Path Definitions

Feb 5, 2011

I have somehow managed to wreck the definitions /paths for my Home and Desktop. If I click on Places I now have a "Home Folder" displayed as "Open Your personal Folder", a "Desktop" displayed as "Open the contents of your Desktop in a folder" and a second "Home Folder" displays as "Open '/home/ian'"....and they all point to the same folder which is my personal user file "ian". This is kind of OK except that every file I have now gets displayed on my screen because "Desktop" has a view of these files. Is there any easy way to reset my file directory ? or do I have to backup my files and reinstall Ubuntu.

View 2 Replies View Related

General :: Change Path Of The Folder From One Drive To Another?

Jan 6, 2011

I have configured 3 drives on my machine.sda1 less than 10 GBsda2 less than 10 GBsda3 450 GBI have installed a software in /usr/share/MyApplicationand as I see /usr/share stays at sda2 and only 2 Gb is free but my application needs more than 3 GB free to run because it creates a temporary file greater than 3 GB during execution.Knows anybody any way how to make MyApplication stays in sda3 drive.

View 9 Replies View Related

Software :: What Is The Path For QCAD Folder In Ubuntu

Mar 29, 2011

I have installed Qcad in Ubuntu 10.10(using the Ubuntu Software center), and I want to add the lybraries. Unfortunately I have no idea where the directory of Qcad is. I tried whereis and locate command ... and no results. Even with Nautilus search no results.

View 3 Replies View Related

SUSE / Novell :: Path To A Share Folder?

Feb 25, 2010

im linux newbie and im trying to build a small cluster using suse 11 and run in parallel fortran by using MPI. I ve made all the preperation (network communication, ssh, sharing using samba etc). I can access the pc's through network, either with their IP's or their hostnames.Now i have to define in one pc (master node) a path to a shared folder where all other clusters will have full access. Usually in windows we can do this by using something like \hostnamesharefolder_name. This haven't work in linuxWhen i access the folder from another pc i.e through nautilus the path is smp:/hostname/sharefolder but i can't use such a path because i think don't recognize the smp:/ . Is there any way to define universal paths where the clusters will look for them in the network

View 4 Replies View Related

Fedora :: There Was An Error Copying File Into Smb://path/folder?

Jun 10, 2010

I'm using fedora 13 to connect to my server's share folder(windows server 2003) and i found that i can create folder,create file, access and open or delete the file in the window share folder, but i can't save or replace the file in the share folder. the error message is like below...there are error copying file into smb://path/folderShow more detail:
Invalid argumenti also have attach the pictureby the way....i had disable the firewall and selinux already....but still can't save the file into the window share folder.previously i use fedora 11 and all is ok with no problem, but the fedora13 got this problem, please tell me what cause this happen?

View 2 Replies View Related

General :: Extract Path Name Starting With Specific Folder?

Nov 23, 2010

Im writing a script that extracts part of the path name:I drop a file in terminal and set the directory name of the file to x using dirname $0note: ( directory is different every time since not all files are from the same location)

ex.
x="/home/Downloads/yesterday/photo/.../image.png" /image.png
/.../ means I dont know the name of folders between but I know the path name always starts

[code]...

View 3 Replies View Related

General :: Locate Second Disk Path From Ssh And Copy A Folder To It?

Jun 9, 2010

I own a web server (centos 64bit with cpanel on it) and my datacenter add me a second hard disk and i want first to locate from ssh where is it (the path) and then to copy my mysql folder /var/lib/mysql to the new disk and have it like this /new/mysql on the second disk.

View 8 Replies View Related

General :: Finding A Recursive Shell Or Perl Script To Delete Files With The Same Name As The Parent Folder?

Jun 29, 2010

is there a recursive shell or Perl script to delete files with the same name as the parent folder? i wish to include the starting folder name as argument to the script.

View 2 Replies View Related

Programming :: Socket Programming In Module Perl

Jul 21, 2010

Where is the perl module for programming with sockets?

View 4 Replies View Related

Ubuntu :: Azureus Update - Error Message - The Folder <path-where-I-installed-Vuze> Is Not Writable

Aug 8, 2010

I installed Azureus from their site. It works well. The only problem is when Azureus tries to apply updates, I get this error message:

"The folder <path-where-I-installed-Vuze> is not writable. This will prevent future software updates from being applied."

There was a link the the Vuze wiki, and the problem is that I (or is it the Azureus updater?) do not have permissions to write to that directory, or words to that effect.

How do I apply the proper permissions so that when an update from Azureus is downloaded, it is applied?

The wiki offers this solution:

Quote:

But this looks like something that I have to do manually, each time...

How do I set it up, so that the updater has the permissions and uses the proper password to do it automatically, when I restart Vuze?

I'm using Ubuntu 9.10

View 6 Replies View Related

General :: Difference Between PATH=$PATH:$1 & PATH=$1:$PATH?

Jan 16, 2011

I found the following function in /etc/profile file.

[Code]...

1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??

2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH

View 14 Replies View Related

Programming :: Make A New Folder For Each File In A Particular Folder

Mar 28, 2011

I been using linux for a while, but I havent had the time to really learn it. Something Id like to get more familiar with is bash so here is a simple example of something I would like to do:

I have a directory full of files. For each file in the directory create a new subdirectory with each files name.

I tried this:

#im already in this directory
aaa=./*
for a in $aaa
do mkdir $a
done

One of the problems is that there are spaces () and - in the filenames so I get many subfolders with names like "-" which i don't want.

I tried stuff like:
aaa=./*
for a in $aaa
do mkdir "'"$a"'"
done

This of course also did not work.

Additional I tried just creating a folder with the name of one of the files and I got this:

mkdir: cannot create directory `(audio) - R56339.EXE': File exists
Well yeah a file exsists with that name, but I want to create a folder- why is there a conflict?

Just to be clear here are the contents of this folder:
~/Desktop/LAB/Media/Drivers - (Image Deployment)/Optiplex_GX260/XP> ls
(audio) - R56339.EXE (NIC-Onboard-Intel) - R54402.EXE
(Modem-datafax-V92) - R54403.EXE OEM_Applications

[Code].....

View 1 Replies View Related

Programming :: Cannot Install Perl / Tk

May 9, 2010

I just downloaded Tk-804.028 and try to install it (according to the README.linux) but I get:

> perl Makefile.PL
/opt/ActivePerl-5.10/bin/perl-static is installed in /opt/ActivePerl-5.10/lib okay
PPM for perl5.010001
Test Compiling config/perlrx.c
Test Compiling config/pmop.c
Test Compiling config/pregcomp2.c

[code]...

View 5 Replies View Related

Programming :: Perl Tutorial To Use?

May 18, 2011

Any recommendations on what Perl tutorial to use?

View 1 Replies View Related

Programming :: Converting MB/TB To GB In Perl?

Jan 30, 2010

I am taking an input from the user for free and Used capacity in a disk. I wish to convert Input entered in MBTB to GB and this is how i am doing it.

Code:

<some code>
print "Enter Total disk space";
$tot = <STDIN>;
convert($tot);

[code]...

how do i pass the value of conv[0] after conversion back to $tot or $use such that they contain only value which is in GB?

View 3 Replies View Related

Programming :: How To Get Perl Qt4 Working

Jul 24, 2010

I really would like Perl Qt4 bindings. The best I could find is this:[URL]The problem is that the sources would not compile, and the RPMs are for 32-bit machines.Is there really no such thing as good Perl Qt4 bindings?

View 8 Replies View Related

Programming :: MP3 - Tag And Perl Script

Mar 27, 2011

I am a newbie on linux and just searching everything about perl scripting and modules nearly 3-4 days. I need a perl script but one of not easy to find on searching google. Okay now I need a perl script which create or recreate (edit) id3 tags (artist, comment, album, year, cover) of mp3 files stored on my linux centos server. I installed MP3::Tag version 1.13 pearl module to my server. I Searched tutorials about how to use it, finally I get through reading id3 tag of mp3 file but not achieve to modify it or create a new id3tag.

These are the details:
I have a mp3 file called 1.mp3 this script will process that '1.mp3' file read its id3tag if there is one, than modify or create id3tag for it by my fix artist name for example:
'1.mp3' files id3 tag details are like this
Artist: Dj xx
Year:2010
Title:yyyyy
Comment:eerwer
Cover: x.jpg

Now via this perl script which uses MP3::TAG I will change it's
artist as YYY
Title:ttt
Comment:cool
Cover:t.jpg
these are gonna be my fixed values. I mean all '1.mp3' file will have same artist based on script value.

The reason of this script is I will share Dj podcasts on my server and Dj's would have upload their mp3's which has got different id3 tags and cover pics. etc. I want to create more organized podcasts of them by the way I would trigger this perl script via Cronjob.

View 14 Replies View Related

Programming :: How To Generate MD5 / Sha-1 With Perl

Mar 31, 2010

How can I generate a md5 or sha-1 code with perl?

View 2 Replies View Related

Programming :: Perl - Interpreter For Fib Numbers

Apr 1, 2010

As some of you know that I am new to this forum. I have another problem that I got stuck on. I have this file called "Fib.rbb" and my instructor told us to write an interpreter program by using Fib.rbb.

"You are to write an interpreter in Perl for Rongs Basic Basic (RBB) as explained in class. The BNF description for RBB and a test file called Fib.rbb are part of the RBB.zip file which is available in the Course Documents folder on blackboard. If you call your interpreter myIntp.pl, you would execute the program via perl myIntp.pl Fib.rbb

Code: Print "A few Fibonacci numbers:"

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved