I solved the problem by doing something same as ssh -X username@localmachine. Since I use a graphic interface "ssh secure shell" to do ssh, I forget to check the tunneling X11 connection. [blush]
Thank you very much for all you valuable information. You are really a professional perl programmer...
Thanks for the code. It is worked.
Now there is another problem. When I try ssh to the Linux machine using a window XP machine. DO you know what this error message mean when I run the code.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
couldn't connect to display...
Hi Kirsle, after I bug to Dell, I got the perl-Tk source code from http://dag.wieers.com/rpm/packages/perl-Tk/. Finally I rpmbuild the .rpm without "XFT=1" after I add some dependency, libjpeg-devel, libpng-devel, and tk-devel. I got two rpm files, perl-Tk-804.028-2.rf.x86_64.rpm and...
Do you think the problem is the RH, I got the error message once I try `yum search perl-Tk`.
Loaded plugins: rhnplugin
There was an error communicating with RHN.
RHN channel support will be disabled.
Error communicating with server. The message was:
Service Temporarily Unavailable
Warning: No...
Hi, once I do
yumdownloader --source perl-Tk
The terminal tell me that
Loaded plugins: rhnplugin
No Match for argument perl-Tk
Nothing to download
What is the problem? Thanks.
If somebody install it before using cpan, but not successful, since I locate Tk.pm, There is following output
/root/.cpan/build/Tk-804.028-ByfZCY/Tk.pm
/root/.cpan/build/Tk-804.028-ByfZCY/blib/lib/Tk.pm
Should I uninstall it? Thanks.
I decide to dip into Tk since some of my old browsers had been built by Tk. Kirsle, welcome any input of built Tk without XFT. If there is a step-by-step tutorial, including rebuilt RMP, it is great. Thanks a lot.
Thanks all for your valuable inputs. Kirsle, sounds like it is a little bit tough for install Tk and run correctly in RH. Before I dip in it, is there any other choices except Tk to run graphics in perl? Thanks.
Want to use Perl/Tk for graphical tool in perl script. But it is not installed in my current RedHat Enterprise 5. Does anybody can give me a hint which package contain it and where I can download it. Thanks.
I know it is a newbie question. But it confuse me for a long time. Every time I use command "setenv PATH $HOME/bin" to add the $HOME/bin to the $PATH. After I logout and login, the $HOME/bin is disappeared from the $PATH. I have to redo command "setenv PATH $HOME/bin" to add the $HOME/bin to the...
Everything is fine when I only tar a single file. And all files are exist.
Every time after i ask the server admin to rebuilt the server, the script will go through and untar all files without any problem.
Next time I use the same code to untar same other different data, same problem will...
For more than one time, once I run the following code to untar several files (total ~4G), the remote server always crash. I use ssh to reach remote server. The final data is around ~30G. I am wondering does this code cause memory leak? Or it eat all CPU space? I do not have any knowledge...
Since i can not solve this problem by perl only. So what I did is input the original file into Excel, first sort by "id" ascending then sort by "score" descending.
After output the file from Excel, then only output the first 3 lines of each id.
my $in = "sorted_in.txt";
my $out =...
Thank you KevinADC for you perfect code.
Sorry I mislead you guys. Actually the file is much more complicated. Each line of the file contains 12 element. What I need is the 3 highest score(last element) of each id (first element), and output the original line.
It is very easy to do it in Excel...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.