General :: Invoking Perl Inside A Ksh Script ?

Feb 8, 2011

Trying to invoke perl inside ksh script.

View 4 Replies


ADVERTISEMENT

General :: Executing An Awk Command Inside Perl Script?

Jul 30, 2011

I want to execute a awk command, which reads from txt files and sums the numbers from the first column for those listed only inside a <init> block -- The awk command is like

Code:

awk '/</?init>/{x = !x}x{a++}x && a > 2{sum+=$1}END{printf"%E" "
", sum}

So, I want to execute it inside a perl script, and execute the awk command for the infile which is also defined outside awk loop, ie doing something like

Code:

foreach $infile (@ARGV) {
$gzin = gzopen($infile, "r") || die ("Couldn't open file $infile
");
# No. events and cross-section from current file

[code]....

View 1 Replies View Related

Fedora :: Error Invoking Gio.make_with_parents

Jun 23, 2011

when i press Alt+F2 then type "r" it rebuilds the gnome shell but when i do this twice it crashs with "oops something has gone bad" or similar to it. i press Alt+F2 then type "lg" to see what is the problem and in the error tab there is "Error : Error invoking Gio.make_directory_with_parents Cannot create directory : filed already exist".

View 6 Replies View Related

Software :: Package Invoking In NS2.34 Version?

Mar 13, 2011

I need to invoke one package namely "Size aware scheduling" in advanced version of NS2.34. In net they have given steps for installing it in older version NS2.18b. i have attached url for that package download. I followed the same steps as they said in note but couldnt install it NS2.34.

[URL]

1st url shows how the package work. second url shows from where the package should be downloaded and how to install it and all.

View 14 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

Ubuntu :: Cannot Reboot Without Invoking Root Password

Feb 12, 2010

I'm running Ubuntu 9.10 and I just installed mythtv to turn it into a PVR. However now I have to type my root password everytime I click reboot. I was thinking maybe it was a user group thing but I couldn't find anything.

View 1 Replies View Related

Programming :: Stop User From Invoking Own Signal?

Apr 27, 2011

I have a signal handler in my tool, which is registered and used between some particular interval (i am using timer). Now this signal handler should NOT allow any other handler to be registered or invoked after this handler is once registered. Is there any way to accomplish this?

[code]...

View 6 Replies View Related

Programming :: Invoking Extension Files In Ubuntu?

Nov 18, 2010

I'm doing a project in Unix version Ubuntu 10.04. I'm doing an standalone app using C++(Qcreator) and GMT(generic mapping tool) so i need help in the following: how to invoke any extension files using C++?

View 1 Replies View Related

Fedora :: Different Behaviour When Invoking Gedit From Root Terminal

Nov 27, 2009

Every time I invoke gedit from the root terminal I get:-

[AnOther@FSLServer ~]$ su
Password:
[root@FSLServer AnOther]# gedit

(gedit:6447): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

followed by 33 occurrences of:-

GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL]. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)gedit opens fine but it seems really odd. My exposure to linux is not vast but this has never happened before Fedora12 It doesn't happen if I just use the terminal as an ordinary user.It also has nothing to do with the Bad & Ugly Gstreamer plugins as this happened from the moment the system was installed from the DVD and before the plugins were loaded even after removing them and rebooting I still get the ream of GConf errors if I start Gedit after su,

View 4 Replies View Related

Software :: Invoking Wine Application From A Desktop Icon

Nov 24, 2008

I have a windows app I run under wine that always displays a blank dos window first when I run it directly from a link to application on my desktop.I wrote a bash script to run it and put that in a link to application and that works without the blank dos window. Why doesn't the first way work?

Long version:I have a small old windows application that stores all my passwords. I like it because it's simple and I can access it (dual boot) from Windows or Linux. It just displays a very simple window with a list of accounts and clicking on one of those opens a child window with the details. It has no graphics or anything fancy. On the windows side, installing it
was as simple as unzipping it and creating a desktop shortcut for it - no setup at all.

On the Linux side (kubuntu hardy), I created a link to application on my desktop with Command set to
wineconsole /media/windoze/Program Files/Passkeeper/pass32.exe and work path set to/media/windoze/Program Files/Passkeeper

It works fine, but when I start it up, I always get a blank dos window on the screen first and then the application window appears. I have to manually minimize the dos window to get it out of the way. It does nothing useful by itself. But, if I close it, it closes the application with it.I tried to run it as as wine instead of wineconsole, but that does nothing at all - at least on the screen and dmesg.

View 2 Replies View Related

Fedora :: Error In Invoking Target 'agent Nmhs' Of Makefile

Jun 26, 2010

I am having an error during my Oracle 11g R2 installation on Fedora 13 that I couldn't get rid of or fix it, and I just continued the installation by clicking on the continue button to skip this error. The error message on the alert window is:

Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk'. See '/u01/app/oraInventory/logs/installActions2010-06-24_03-22-15PM.log' for details.

and here is the contenets (error part) of the installActions2010-06-24_03-22-15PM.log file

INFO: /usr/bin/ld: /u01/app/oracle/product/carried(nmectlt.o): undefined reference to symbol 'B_DestroyKeyObject'
/usr/bin/ld: note: 'B_DestroyKeyObject' is defined in DSO /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so so try adding it to the linker command line
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so: could not read symbols: Invalid operation

[code]....

View 2 Replies View Related

OpenSUSE :: Invoking The Gnome Start Menu From The Command Line?

Jun 28, 2010

I'm wanting to be able to run the Open Suse start menu from the command line.king remotely, I have found that I have faster response time by only running specific X components instead of an entire desktop (particularly useful under Windows 7 Cygwin). Specifically, I'd like to invoke the start menu from a ssh command line.On Linux Mint,line command is:mintmenuWhat is the equivalent command to bring up the Slab Start Menu on Open Suse?

View 8 Replies View Related

Programming :: Invoking UNIX Shell Commands From HTML Webpage

May 11, 2010

I have a few questions regarding HTML, UNIX and Javascript. I've been tasked with creating a fairly simple webpage that takes a few inputs. Each input must correspond to an argument in a UNIX command running on a server.On a UNIX server we have a script (.ksh) that takes 3 arguments. The result of the script is a data file which is FTP'ed to an external server. Let's forget about the FTP portion for now. I would like to know where I should begin.What I know so far:

1) I will need HTML to create the webpage. Skill level is high
2) I will need Javascript to make my webpage more interactive. Skill level is high.
3) I will need to understand the UNIX environment. Skill level is high.

View 8 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 Installation :: Invoking Gazebo Gives Error - Appeared After Installing NVIDIA Accelerated Graphics Driver

Nov 6, 2010

I have completed building gazebo, and everything was done successfully according to the following link [URL]... bot_Simulation , but when I tried to invoke gazebo using the command "gazebo /usr/local/share/gazebo/worlds/pioneer2dx.world" it returns the following error

[code]...

View 1 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

General :: Run Emacs In CLI Inside Of GUI?

Jul 29, 2011

I tried Google search and reading man page options for emacs but couldn't find... If I run emacs in GUI, it starts GUI for emacs. I want to run it in CLI in rxvt. How do I do it?

View 1 Replies View Related

General :: See All Ip's Inside Server?

Sep 17, 2010

I want to see all my ip's inside server. ip a command and ifconfig not working. Because i am under su root login. Is there any possibilities to view all my IP reside in the server..

I am using CentOS release 5.5 (Final) server.

View 5 Replies View Related

General :: Cd Inside If Than Statement After Fi Back To Old Dir

Jul 12, 2010

the script below prints the pwd of where I want to be. after the fi it puts me back at the original dir. just writing these scripts to understand what's going on.

#! /bin/bash
if
[ -d mydir ]
then
cd mydir/ && pwd
fi

View 4 Replies View Related

General :: Will Mandriva Run Inside Windows 7

Aug 26, 2010

Will Mandriva run inside Windows 7?

View 1 Replies View Related

General :: Copy A File Without Using Scp Inside An Ssh Session?

Jun 1, 2011

I have logged on to a system with ssh and there is no scp present on both the systems. How to copy a file without using the scp program.

View 3 Replies View Related

General :: How To Create A Folder Inside A Tarball

Jun 9, 2011

I created a tarball with multiple files. The rpm generator requires those files to be inside a folder. I don't want to move the files before generating the tar. Is there a way to create this folder while generating the tar or after it?

View 1 Replies View Related

General :: Listing TAR Contents Inside Directory

Jun 16, 2011

This is the script I'm running
tar tf some.tar somefolder_insidetar
And output it's a list with all folders, files, and SUBDIRECTORY Files, the only thing I need it's just show the contents (folder and files) of the current directory choosed, not listing subdirectory files, or subdirectories inside subdirectories.

View 3 Replies View Related

General :: Mount A Pen Drive In Red Hat Inside VirtualBox?

Jun 25, 2011

I am running VirtualBox on a Windows XP host. Red Hat Linux 5.2 GUI is running inside VirtualBox. I want to use my USB pen drive inside Red Hat - it is visible from Windows XP but not from Red Hat.

Can anyone tell me what might be the problem and how I should fix it? I am new to using Linux.

View 1 Replies View Related

General :: How To Install Grub Inside Windows 7

Aug 2, 2011

I want to install grub inside windows 7. I don't want to partition anything neither I want to remove Windows Boot Loader (BCD). I simply want to Use Grub from windows 7 boot menu. I want to do this so for frugal install of linux distros such as puppy, slitaz, etc. I have used WinGrub on Windows XP and it worked fine. But I don't think that will work on Windows 7.

View 1 Replies View Related

General :: Get Mfstools To Work Inside A Distro?

Oct 27, 2010

if you ever got the syntax right to get mfstools to work inside a distro?

View 2 Replies View Related

General :: Run Command As Root Inside Script?

Sep 4, 2009

I am running a shell script using a non root user. Somewhere down in the script, I'll have to call some script to be executed as su (or a user with more privileges than the one running the original script). So if i put a line in the script as:

Code:

su - root -c /root/roleScripts/assignRoles.sh

Then when running the command, it will prompt me for root password(because the current user has lower privileges than the user requested. Suppose I want to pass this password as an argument to the original script, so that it doesn't prompt me for password later on, what is the way? Can I switch user passing the password and run a command?

View 14 Replies View Related

General :: Using An Alias Inside A Function In Bash?

Jun 8, 2011

I have trouble with using an alias inside aash function. I would like to ssh into multiple machines by executing:ssh machine To achieve this, I put something like the following into my ~/.bashrc:

alias machine='user@machine'
ssh()
{

[code]....

View 1 Replies View Related







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