The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
64 views
+200

Perl Package Manager via NTLM proxy

I've installed ActivePerl and the include PPM at work, but I'm unable to get it connect to the module repository through the proxy. I've set up an environment variable HTTP_PROXY = ...
1
vote
1answer
45 views

Can someone explain why LWP::Simple is satisfied by perl-libwww-perl?

Installing Munin on RHEL 6 from RPM available at, http://pkgs.repoforge.org/ most installs were ok but when installing munin-node got this: rpm -Uvh munin-node-1.2.5-1.el5.rf.noarch.rpm warning: ...
0
votes
1answer
51 views

Building VIM with python support in Cygwin?

I'm trying to build VIM with Python/Perl support under Cygwin. Has anyone done this and can shed some light how this is achieved?
3
votes
7answers
175 views

unix - split a huge .gz file by line

I'm sure someone has had the below need, what is a quick way of splitting a huge .gz file by line? The underlying text file has 120million rows. I don't have enough disk space to gunzip the entire ...
2
votes
2answers
63 views

Removing ANSI color codes from text stream

Examining the output from perl -e 'use Term::ANSIColor; print color "white"; print "ABC\n"; print color "reset";' in a text editor (e.g., vi) shows the following: ^[[37mABC ^[[0m How would one ...
1
vote
3answers
38 views

sed removal of whitespace

I find that sed often fails to pattern-match whitespace. Consider the following examples: echo 'A B C' | sed 's/[ \t]*//g' ABC echo -e 'A\tB\tC' | sed 's/[ \t]*//g' A B C perl ...
0
votes
1answer
42 views

awk + sed + match complex string

I need useful command to match the string "/pci.../pci.../pci..../scsi..../disk..." with awk or sed? ( I need to put this command in my ksh script ) remark 1 [...] can be any string , and “pci pci ...
0
votes
2answers
66 views

egrep: CPU and memory usage

My Linux machine has 16 processors and free memory of 70 GB but when I run an egrep command, the command is using (checked through the top command) 100% of CPU and 0.5 of memory: 22391 aime 25 ...
0
votes
2answers
113 views

extracting 7zip exe file

Extracting the 7z file, what is the best way to extract the 7zip file, currently 7zip file in format of .exec, now need to convert this into normal file, what is the best way to extract this ...
0
votes
0answers
59 views

How to pass bash variables (passwords) to IRSSI config file?

I'm using IRSSI and I wonder how can I pass my IRC channel's passwords to the IRSSI config file (~/.irssi/config) without writing them directly in the file. In Mutt I've an awk command that queries a ...
0
votes
2answers
31 views

How to do create a thumbnail of many sites?

I've got a list of 2500 websites and need to grab a little screenshot of them - to create a thumbnail How do I do that? Well I could try to parse the sites. Either with Perl or Python
0
votes
3answers
277 views

How to install perl in ubuntu server?

I'm trying to deploy an app which according to the documentation requires the following: 2.2.5. Perl LMS-MGC and the rest of Perl scripts requires also Perl interpreter and some modules: Perl and ...
2
votes
1answer
34 views

What is causing git byte order error?

I can no longer git svn rebase (using msysgit on Windows 7). The error starts with: Byte order is not compatible at ../../lib/Storable.pm And ends with: Could not unmemoize function ...
1
vote
2answers
46 views

Split a file by two consecutive newlines

I have text file like this 1. some topic a 20p ID: 20 2. something topic another here there ID: 30 3. ... here come another ID: 40 They are separate by two newlines. How could I split this into ...
1
vote
3answers
55 views

How do I delete a certain line from a file with Perl?

How would I delete the line [[ -f /var/tmp/Li.ksh ]] && /var/tmp/Li.ksh from a file by a perl command in a ksh script? I tried: perl -i -pe "s/[[ -f /var/tmp/Li.ksh ]] && ...
1
vote
1answer
32 views

CPAN install to many directories

When I install stuff locally (not as root) with CPAN, it ends up putting things in a multitude of places. So much so, that I have to set PERL5LIB to five directories! Here's the CPAN settings where ...
0
votes
1answer
90 views

Make Tor use Unique IP for each instance open

How can I get Tor to use a unique IP for each instance of Tor open in C++, Python or Perl? Is there a command to force it to use a unique IP that I can just call using subprocess? *cheers
31
votes
12answers
2k views

How do I remove a file in Linux whose name looks like it's ONLY a hyphen, as in “-”

I've tried rm -- - rm "-" rm "\-" rm \- Gave Perl a shot ~$ perl -e '$junk = glob("-"); chomp $junk; print "$junk\n"; `rm $junk`;' - rm: cannot remove `-': No such file or directory ...and... ...
0
votes
1answer
27 views

Use “find” command to list files IN specified directory

I'm putting together a perl script, and I'm using the following command to list all files and directories under a specified directory `find $dir -print` This lists all files and directories UNDER ...
2
votes
1answer
50 views

How do I model a Perl class with “::” in StarUML?

In StarUML, how can I model a Perl class which uses :: in its name? It doesn't allow :: in the class name, reporting: Element name cannot contain "::" Is there a way to work around this ...
0
votes
1answer
20 views

Japanese chatterbot projects

I'm sure everyone has heard of ELIZA and her successor ALICE. Apparently nowadays Cleverbot, the successor of Jabberwacky has come in the limelight with a Turing result of 59%, only a few percentage ...
1
vote
2answers
64 views

Automatically Running Perl Script

Is it possible to have a Perl Program constantly running while my PC is on? If so, how do you do it?
2
votes
3answers
620 views

How do I queue multiple files for copying on a Mac?

When I copy multiple files on a Mac, the system tries to copy them all at the same time. The problem is two-fold. First of all, when you select multiple files and copy them, they all go into one ...
1
vote
3answers
49 views

SW to replace a string in Windows

I have a text file (actually XML) that I want to be able to change using a command line. In other words, as part of a Windows batch, I want to locate a string (in this case @@@@, which uses a ...
0
votes
1answer
81 views

perl slurp module issue

root@bt:~/wepbuster-1.0_beta# ./wepbuster Can't locate File/Slurp.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 ...
1
vote
1answer
128 views

What does this Linux shell script line do?

I'm trying to determine exactly what the following line of shell script is doing.: grep --files-with-matches '>' . | sort | uniq | xargs perl -pi~ -e 's/9Kp/9K /' /home/user/DATAFILE.DAT I'm ...
1
vote
1answer
171 views

How do I install Perl/Tk 804.29 from CPAN on OS X with the Xcode tools?

A friend tried to install Perl/Tk 804.029 from source on his MacBook Pro, but it failed during the build of the internal zlib archive: $ cpanp -i Tk [...] cd zlib && make libz.a "CC=llvm-gcc-4.2 " ...
1
vote
1answer
58 views

Trying to use XML::Parser and XML::XPath, where do I type the command?

Here's the tutorial I am using, which I have been assured is of high quality by Google: http://www.kitebird.com/articles/mysql-xml.html#TOC_5 Now, what I am trying to do is run some test scripts ...
1
vote
1answer
106 views

Installing dropbox-api on SUSE fails

I am trying to install the dropbox-api onto my suse 11.4 but i keep getting this error: Can't locate DateTime.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi ...
1
vote
1answer
372 views

How to fix CentOS 5.5 update problem?

It always has this problem. --> Finished Dependency Resolution perl-AnyEvent-5.240-1.el5.rf.noarch from rpmforge has depsolving problems --> Missing Dependency: perl(Net::SSLeay) >= 1.33 ...
3
votes
3answers
96 views

Creating UNIX-style shortcuts on Windows?

I have a unique problem... I develop Perl on a Windows machine, but my test/prod servers are AIX. I want to be able to test locally with an installation of Apache & Perl, but I don't want to have ...
0
votes
0answers
51 views

How can I extend urxvt to send messages when the shell is idle/active

I just changed from Konsole to urxvt (to save screen place). One thing I'm missing is the watch for (In)Activity options Konsole has. The Documentation in the man-page gave me a few hints. To try it, ...
2
votes
2answers
195 views

Log-off Scripts in Windows 7

I have Public machines that I need to run log-off scripts, which are in Perl. I want the script to run for a Standard user. It seems that the UAC is blocking this from happening. So, I have turned the ...
0
votes
1answer
30 views

How to dump data to DVD when the disk space reach 80% on RAID 1, and clean the dumped space from disk after burn

How to monitor in unix (FreeBSD) /linux (CentOS 5.6) the disk space if its greater or equal to 80%? If its equal or greater then 80%. How can i tell dump the data from a specific /misc/ folder to ...
0
votes
0answers
81 views

Problems making Alien SVN

Since I use CollabNet's Subversion package (which seems not to be a standard installation), I want to manually build Alien SVN. But doing this, I get the the following error: .o copy-cmd.o ...
2
votes
1answer
196 views

perl5.14 OS X - what is the best way manage it?

Im an heavy macports user. Have a lot of ports installed with +perl variants. (and much p5-modules too, and zilion others installed by cpan). Now, I need perl 5.14. (because improved utf8 handling), ...
1
vote
1answer
122 views

Problems installing Subversion Perl

I'm trying to setup Bugzilla's VCS integration with Subversion. I've installed the CollabNet Subversion client CollabNetSubversion-client-1.6.16-1.i386.rpm which installs its libs to ...
1
vote
2answers
300 views

How do I get the path to the perl script that I only now the PID of?

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 ...
1
vote
1answer
147 views

sh.exe and ls significantly slower than usual on MSYS bash and GIT

I use MSYS Git and have the MSYS shell installed. I run Windows XP. All of the sudden basic tasks like runnig ls take many many seconds (>7 seconds) in the Git Bash shell or in the MSYS shell. ...
1
vote
3answers
123 views

New version of Perl

I installed Perl 5.12 on my server, but when I try to check what version is running is says 5.10. I had 5.10 installed previously, so how can I deactivate this older version and make 5.12 the default ...
1
vote
2answers
135 views

How to make «grep -P “foo (b.r)”» display only what's in the brackets? Do I need perl?

I have a large file, and I'm trying to get all matches of a regular expression from it. grep -P "foo (b.r)" Displays all the lines containing «foo b.r», and I'd like to display only what's inside of ...
1
vote
0answers
44 views

Have to write a program using a perl language using the following idea [closed]

i need to write a program, to fetch a number, when i enter the number as input, it should display from the number which i gave as input to the preceeding number the file may be like this B456 ...
1
vote
5answers
170 views

Port perl script to Windows

I have a great perl script I use to untar/unzip a tarball of a file, then correlate a dozen+ files for smart troubleshooting of a NAS system. Now people want to see a version for windows =/ I am ...
0
votes
1answer
172 views

How to run a script constantly in background under linux

I have a perl script which runs a mini webserver allowing me to do various things. I'd like to have this script run when the machine starts up, and constantly run in the background. How should I ...
0
votes
0answers
19 views

Perl TK debugger is broken for me.

ptkdb.pm is still broken for me. Under Windows 7. It stops with this error. $self->{BookMarksPath} = $ENV{'PTKDB_BOOKMARKS_PATH'} || "$ENV{'HOME'}/.ptkdb_bookmarks" || '.ptkdb_bookmarks' ; ...
1
vote
4answers
325 views

Renaming files in batch with Unix RENAME

I have files whose names look like this: Sim1-2_40.36.chr20_sb.foo.indel.novoalign.sam Sim1-2_40.36.chr20_sb.foo.indel.bwa.sam What I want to do is to replace all indel with snp in the names ...
0
votes
1answer
209 views

Perl CPAN: Can't install module dependencies - Could not find a version X or above

Whenever I try installing a perl module on my system, it fails to install the dependencies. I had this working before, I'm not sure why it's not working on my fresh setup. For example, I try to ...
0
votes
1answer
100 views

rsync command works in Bash but hangs when invoked from Perl

I have an rsync command that works fine from either the Bash command line or a Bash script. The command is: rsync -qtz user@hostname:/tmp/p /tmp When I run the command, it copies the file and runs ...
0
votes
1answer
200 views

Perl + failed to install Pogo module on RedHat 5.4

Please advice how to install the Person module "use Person;" on my linux machine The perl script use - obj oriented why I get the following: [root@linux /tmp/Pogo-0.10]# perl Makefile.PL Note ...
0
votes
0answers
63 views

Caching videos but of 0 Size

i have recently install cachevideos on linux with squid, its working but when it caches the video the video is just of 0 bytes in size, in the videocache.log file something like this appears ...

1 2 3