Software :: Store The Return Value Of $DISPLAY Into Perl Script?

Jul 21, 2011

I want to store the return value of $DISPLAY into my perl script. I am new in perl script echo $DISPLAY

how could i make it?

#! /apps/perl/bin/perl
$session = `echo $DISPLAY`;
print "$session
";
but nothing come out

[Code]...

View 3 Replies


ADVERTISEMENT

Programming :: Read And Store Key In A Perl Script?

Sep 22, 2010

I have a webpage (jps) that produce a key. How i read and store this key in a perl script.

View 1 Replies View Related

Programming :: Perl - Store And Access An Array In A Hash Of Hashes?

Jul 7, 2010

I am in need of some syntax help. I'm trying to figure out how to store and retrieve an array out of a hash of hashes. For this example, I'm trying to access the city list for a particular state for a particular country. I understand I could do a join and split on the hash key to combine Country and State, but trying to keep things separated.The code I have gets in all the information for the Countries, and states, and gets the list of cities together, no problem. I store all the city names in an array, then make an anonymous pointer to the array for the hash, like this - $MY_CITIES{$COUNTRY}{$STATE} = [@CITIES]I believe that syntax is correct, or is it? What I'd like to do is I need to cycle through every hash to find if a city exists or not. If it exists in 3 states, then it should print 3 times. Here is the code block to search -

Code:
for $COUNTRY (@LIST_OF_COUNTRIES) {
for $STATE ( keys %MY_CITIES{$COUNTRY){$STATE} ) {

[code]...

View 4 Replies View Related

General :: Display AWK Output In Perl

Feb 8, 2011

I am trying to use awk command in perl. Below is my awk comamnd which works alone.
awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat
I would like to use this awk's output in shell script. I am using system command like below to get the out put. But it is not working.
$Output = system("awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat'");

View 3 Replies View Related

Programming :: Perl : Display All Variables In Use In Memory?

Jul 30, 2010

I have a large body of code (2000+ lines at this point) with lots of global variables, and a handful of locals. I would like to know is there a way to print out all global variables in use at a particular moment in time either from the debugger (ideally) or in line?

Basically I have something like this for the menu

1. Do thing 1
2. Do thing 2
3. Do thing 3
4. Do thing 1 and 2
5. Do thing 1 and 3
6. Do thing 1, 2 and 3

The problem is, as you select something from the menu again after you finish an option, the globals are still set and I'd like to clear them. If I had a list of all of them, it be easy to copy and paste and set them before the program ran another entry again. Suggestions? I'm aware of reset [a-z], but all of my vars are uppercase, and I would upset INC, and other upper case built-ins.

View 1 Replies View Related

Software :: Apache Run Perl Then Create Index Page And Display It

Sep 15, 2010

I've got a perl script which generates an html file. What I'd really like to do is send people to just one page (the perl page) which then generates the html and shows the html page in question. Thus the whole transition will be invisible to the user, they'll just have an html page.FYI the perl script generates a list of the users who last logged in to the system, it needs to be up to date (by the second).Let me know if this isn't clear, I understand it sounds a bit confusing...

View 4 Replies View Related

General :: Where Does ITunes Store Its Stuff - Copy Its Data Store To An External Drive

Dec 8, 2009

I have two students whose windows laptops are riddled with malware and not working properly. They want me to help them install Linux (which we use in school), but they are concerned about their iTunes.

Having avoided iPods as "defective by design", I know nothing about iTunes whatsoever. However I remember reading about DRM locking and such problems that have me concerned that I won't be able to do it.

Where does iTunes store its stuff?

Can I copy its data store to an external drive, and then into a linux home?

Then will it work on wine, or can another manager (rhythmbox etc) access the itunes data?

Alternatively, if I partition the drive and install linux, can rythmbox/wine/something access itunes data on the win partition?

Supposing they are buying music through iTunes, what will happen to that account?

Finally, one of them has an iphone. Does that work with linux?

Ironic that an apple application is blocking migration away from windows.

View 9 Replies View Related

CentOS 5 Server :: Move 5.5 To /usr/bin/perl So Root Based On Perl 5.12.1?

Aug 11, 2010

I am new here and want to lern CentOS. Current I have installed CentOS 5.5 x64 and Perl 5.8.8. Now i have install Perl 5.12.1 which located to /usr/local/bin/perl. But how I can move it to /usr/bin/perl so root based on Perl 5.12.1?

View 7 Replies View Related

Debian :: Launch The Perl Config \ Seems To Be That It Does Not Regonize Perl?

Jul 7, 2010

I am trying to launch the perl config, but when I do so I can an weird error.It seems to be that it does not regonize perl ?

conf.pl: line 11: =: command not found
conf.pl: line 19: my: command not found
conf.pl: line 20: syntax error near unexpected token `{'

[code]...

View 2 Replies View Related

Ubuntu :: Switch Back To /usr/bin/perl After Installing Second Perl?

Aug 14, 2010

I recently reinstalled the B module for perl. Now I found out it didn't just do that, it installed a whole new copy of perl into /usr/local/bin/perl. When I type 'which perl' at the terminal, it says '/usr/local/bin/perl' instead of '/usr/bin/perl'. Normally, this wouldn't bother me. But I installed the one in local/bin without threading support. The one that comes with the system already is build with threading support, which is why I want to switch back to the system perl, and possibly remove the one in /usr/local/bin.

So how do I change it so that the result of 'which perl' returns as '/usr/bin/perl'? And what do I have to do to remove /usr/local/bin/perl?

The reason I need threading support is because I'm designing a file copier that copies several chunks of a file simultaneously to speed up the copying process. Guaranteed a useful script if it works.

View 7 Replies View Related

Ubuntu Multimedia :: One Music Store / Message "Connecting You To One Music Store"?

Jun 24, 2010

I added a song to my basket and when I click Checkout....it just stays on this message "Connecting you to the Ubuntu One Music Store..." and does nothing.

How can I fix this so I can buy music?

View 2 Replies View Related

OpenSUSE :: Difference Between Perl And Perl-devel?

Jun 28, 2010

I'm new in perl programming and linux OS. What is the difference between perl and perl-devel? What does mean devel? Iwant to install Catalyst and before install as required I have to check if make, gcc and perl-devel are installed in my system. make and gcc are installed. But I have to install perl-devel. First I searched for make, gcc and perl-devel in YAST Software Management and search did not find perl-devel. I visited the software.opensuse.org and wrote "perl-devel" and searched. The result was many similar zips with a prefix perl-devel and I can not choose one for needed perl-devel.

[Code]...

View 5 Replies View Related

Fedora Networking :: /usr/bin/perl: Symbol Lookup Error: /usr/bin/perl: Undefined Symbol: PL_use_safe_putenv

Apr 8, 2009

I am trying to setup the wlan access for my Fedora 9 system. I installed ndiswrapper. But when I run

Code:

ndiswrapper -l

i am getting the error

Code:

/usr/bin/perl: symbol lookup error: /usr/bin/perl: undefined symbol: PL_use_safe_putenv

View 11 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 :: Use "#!/usr/bin/perl" In The Beginning Of A Perl Script

Dec 17, 2010

I have a small problem with Perl and Apache.

If I use "#!/usr/bin/perl" in the beginning of a perl script the script won't work if the script is at all complicated. Simple scripts like "Hello World" works.

But if I use "#!/usr/bin/perl -w" in the beginning all scripts work?

If I don't use the -w this is whats in the logs:

(2)No such file or directory: exec of '/home/test.net/html/cgi-bin/uh/meny.pl' failed

Premature end of script headers: meny.pl

When I use the -w in the script the error-log shows me this.

meny.pl: Name "main::http_path_cgi" used only once: possible typo at /home/test.net/html/cgi-bin/uh/meny.pl line 24.

View 1 Replies View Related

OpenSUSE :: 11.4 Gnome 2.3 Display - CRTC Error That The Display Is Over The Maximum - 1920x1920

Apr 16, 2011

I have a fresh install of OpenSUSE 11.4 64bit and I have installed the AMD Display drivers for my Radeon HD 5970. Everything seems to be working quite well. I have a multiple monitor setup (1280x1024 monitor and a 1920x1080 monitor).

I have my primary display set to 1920x1080, however when I try to enable the second display, I get a CRTC error that the display is over the maximum (1920x1920). If I enable both monitors at lower resolutions, there is no problem.

I have done a fair bit of reading and have been unable to determine where this maximum is set, or how to change it. I'd like to be able to run both monitors at their native resolutions.

View 3 Replies View Related

General :: Know Which Display Number For The Variable DISPLAY To Be Exported When Ssh To Server?

Dec 26, 2010

When i ssh to server using -X, i always confuse about which display number i should export. It seems to me sometimes the display number has been used by something, so what i can do is only

export DISPLAY=localhost:0 && xclock
export DISPLAY=localhost:1 && xclock
export DISPLAY=localhost:2 && xclock

[code]....

View 1 Replies View Related

Ubuntu :: HD4870 Dual Display - Cannot Seem To Swap My Primary Display

Jan 8, 2010

Hi I am new to ubuntu and am having major problems setting my displays up. my setup is a hd TV to the Left of my pc monitor, i have managed to configure catalyst to let me have a main display with the second display being an extension of the first, the problem is i cannot seem to swap my primary display, at the minute my HDTV has all the taskbars and everything on it while my pc monitor is just a blank background, i would like it so i could start a film playing for my children, then drag it across to the HDTV while i can still use my pc in the background.

View 1 Replies View Related

Debian :: Where Does Quassel IRC Store Its Log

Jun 18, 2015

Where does quassel irc monolithic client store its logs ?

View 3 Replies View Related

Fedora :: System-config-display Just Ruined Display?

Jun 29, 2010

I did not have any /etc/X11/xorg.conf, so I read on these forums that system-config-display would create one for me. I ran system-config-display and it created an xorg.conf. But now my display is all messed up!! So, I deleted the xorg.conf and nothing changed. Why on earth would the display still be messed up if I deleted the file that was causing it?? Does system-config-display change somethign else?

View 14 Replies View Related

Ubuntu :: Display Driver - Cannot Get Display Settings Nvidia7600GS?

Jan 28, 2010

I am using GeForce 7600 GSNot using the Nvidia X driver message you know... I searched all over, and seen this problem on many searches but no resolve issues.I want to be able to connect my tv, I use to be able to when I first installed Ubuntu and now IdK.

View 3 Replies View Related

General :: X11 Forwarding - Error: Can't Open Display: <ip Of Display>

Jun 28, 2011

I have the following scenario that doesn't seem to work normally. I have a windows 7 pc from which I am using putty to connect to my other linux servers (all running redhat 5 and 6). So here is the scenario that works and one that does not work. And I'm trying to figure out the one that does not work. Scenario that works:

From windows 7 (putty) I ssh into Linux_Server_1.
echo $DISPLAY
localhost:10.0

I run xclock and I see it pop up on my windows 7 pc. I am using xming on windows 7 to help me populate the display from linux to windows. One that does not work:

From windows 7 (putty) I ssh into Linux_Server_1. Then from Linux_Server_1 I ssh into Linux_Server_2.
echo $DISPLAY
<no output>

I try to setup $DISPLAY with localhost:10.0 or 0.0 or even my windows 7 pc ip address:0.0 ....etc Then when I try to run xclock I doesn't work.

I get these error messages: Error: Can't open display: <ip of display>

Also as a side note all our Linux servers are sitting on one subnet. My pc is sitting on another subnet. I use vpn to connect to the subnet where the servers sit from my pc.

View 4 Replies View Related

Debian :: How To Store A Screenshot As A File

Apr 15, 2015

One can take a screenshot - i.e. to store it in the memory by pressing PrtScr. But I failed to find how to write it into a graphic file? In particular in Xfce which does not have a graphic file editor

View 11 Replies View Related

OpenSUSE :: Where Does Firefox Store Thumbnails

Feb 12, 2010

Where does FireFox store thumbnails? I want to dump them without dumping my cache.

View 7 Replies View Related

General :: Where To Store Application That I Develop?

Sep 6, 2011

I'm developing a server application for ubuntu server, clients will connect to in through socket connection. It's in beta stage and under heavy development. At the moment lots of people are using it and it is updated almost every day. So I seed to seriously consider security issues and in the same time don't restrict myself too much. Now I have two questions:

Where is the appropriate place to store its files? Application consists of executable, some config files and startup script. But I don't want to spread it accross the filesystem just store in single folder for convenience since app is under heavy development. My guess would be to create new dir under /var. Right now I store it in my home folder.
Do I need to create separate user for it? I start it up using init.d script via sudo -u me. I want to restrict its access to system for security purposes but in the same time I want to be able to update it through FTP and not run into access issues (user that uploads it is different from user that runs it, and it sometimes need write access to some files). How to do that?

View 1 Replies View Related

Ubuntu One :: Web Store Get Filled And Corrected?

Jan 4, 2010

I use one PC only, I paste some files and folders into the U1 folder. Files upload to the webstore, I can see them via the web. Now, *what* is subsequently used as a *reference* for content? For example, what should happen if I rename a folder in the PC U1 folder? Should the new name later appear appropriately on the webstore? What should happen if I use the web access, and delete a folder in the webstore? The PC U1 folder remains full, does the web store get filled and corrected? At a time when the webstore is complete and correct, if the contents of the PC U1 folder is deleted by me, will the webstore contents act as a form of backup? Or will the webstore contents also get removed by U1 process?

View 2 Replies View Related

Ubuntu :: Best Fylesystem To Store Backups?

Mar 17, 2010

What will it be? I will use Clonezilla as the backup software, but I want to be able to see the backups from both Linux and windows.

Is fat32 an option? I have very large files(game isos and stuff like that)

If fat32 isn't an option, what filesystem should I use?

I read this thread but it doesnt mention the software to use and I assume we wants only to be able to see it in Linux.

View 7 Replies View Related

Ubuntu One :: Try Music Store For Free

May 1, 2010

If you want to try the music store out without risking of any of your hard earned, 7digital have a selection of free downloads here. Check them out on web site, then go find in Rythmbox and check out as normal.This is using from UK, I assume they also do the same in other territories.

View 2 Replies View Related

Ubuntu One :: Cannot Get Music Store In Karmic

Sep 15, 2010

As the subject says, i cannot get the Ubuntu One Music Store to run under rhythmbox in 9.10.

View 4 Replies View Related

Ubuntu One :: One Music Store As Does Rhythembox?

Nov 26, 2010

I heard that Banshee was going to be the next default media player for Ubuntu. So would someone tell me why Banshee does not yet of the Ubuntu One music store as does Rhythembox?

View 2 Replies View Related







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