top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to create perl script shortcut in Solaris or Ubuntu

+1 vote
815 views

I have a perl script test.pl. I want to create desktop shortcut. While I click on this shortcut icon it will run my perl script and keep the terminal open.

I have tried the command

ln -s test.pl ~/Desktop/abc

while I click on this abc Icon from my desktop. It run and same time the terminal exit. Could you please help here?

My requirement is:

I want to create desktop shortcut for particular perl program. While I click on this icon from desktop, it should run and keep the terminal open.

posted Oct 15, 2013 by Abhay Kulkarni

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

One way is to have a standalone as the last statement. This will make the program to wait for any input. Another approach is to use sleep 10 which will wait for 10 seconds.

answer Oct 15, 2013 by Salil Agrawal
My terminal should open once I click the test.pl icon in desktop. For example, open an new terminal, the .bashrc file run automatically and the same time terminal kept open for new command.
0 votes

Salil has given you one way of displaying the output of your script when clicked by holding the shell open with the . There is no way to fall back into the shell, because nothing exists there besides your script process to hold it open. Process terminates shell window gone!

answer Jan 23, 2014 by Amit Kumar Pandey
Similar Questions
+3 votes

How to delete a symbolic link in Solaris ?

"ln -s" command is working fine to add a symbolic link. But how the symbolic link can be deleted ?
I tried like this, but its not working

ulink abc.xml
ulink: not found

I tried unlink command , but got the following message " command not found"

+1 vote

I tried to compile git 2.4.3 on Solaris 10. I used the following configuration:

$ ./configure --without-iconv

$ grep -i iconv config.status
ac_cs_config="'--without-iconv'"
 set X /bin/bash './configure' '--without-iconv'
$ac_configure_extra_args --no-create --no-recursion
OLD_ICONV=UnfortunatelyYes

But when I try to compile it, I get an error that libiconv is missing:

 LINK git-credential-store
Undefined first referenced
 symbol in file
libintl_gettext libgit.a(lockfile.o)
libiconv_close libgit.a(utf8.o)
libiconv_open libgit.a(utf8.o)
libintl_ngettext libgit.a(date.o)
libiconv libgit.a(utf8.o)
ld: fatal: symbol referencing errors. No output written to git-credential-store
collect2: ld returned 1 exit status
gmake: *** [git-credential-store] Error 1

How can I work around this?

0 votes

How can write a python script which will execute some perl scripts in a gui and shouldn't be post processed....?

0 votes

Do you know if there is a working module that can be used to post to WordPress from a Perl script? I've seen that all the modules that contain WordPress are very old.

I need to install that module under a Perl built with Perlbrew. I tried to install WordPress, WordPress::API, but they both depend on WordPress::XMLRPC which depends on SOAP::Lite which depends on XML::Parser which can't be installed because of the error "expat.h - no such file or directory".
I also tried to install XML::Parser::Expat but it gives the same error.

By curiosity I searched for a Python module, and I found python-wordpress-xmlrpc, I installed it very fast and easy, I found that it offers more features than the Perl module WordPress, I tested a sample script I found on the web, and it worked very well.

+1 vote

I was installing bugzilla on Solaris machine and getting below error

./testserver.pl http://localhost
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got padlock picture.
TEST-FAILED Webserver is fetching rather than executing CGI files.
Check the AddHandler statement in your httpd.conf file.

I checked httpd.conf and I have added AddHandler cgi-script .cgi in this file. But not able to get through. Could you help me please.

...