LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2009, 09:46 AM   #1
shriyer
LQ Newbie
 
Registered: Jul 2009
Posts: 17

Rep: Reputation: 0
Perl command


Hey.. anyone know what the following perl command does ?
system("gdg -r 9 -e $last_sys_ref >/dev/null 2>&1");
whats gdg ? with all those options.

Does it try to delete the contents of the file referenced by $last_sys_ref ?

Last edited by shriyer; 07-14-2009 at 09:48 AM.
 
Old 07-14-2009, 10:53 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The "system( )" syntax says to run what is inside the parameters as if it were typed at a command line.

Type "which gdg" to find out where gdg command is. Do a "file <pathto>/gdg" to find out what kind of file. If it is ASCII or text (or script) you should be able to view the file and get a clue what it is.
You can try "man -k gdg" to see if there are any man pages for gdg known on your system. If not you might be able to find more information near where the gdg command was found. (That is if for example you found gdg in something like /opt/gdg/bin/gdg then there may be other files in the /opt/gdg directory structure that help you figure out what it is.)

I've never heard of gdg myself.
 
Old 07-14-2009, 10:59 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by shriyer View Post
Hey.. anyone know what the following perl command does ?
system("gdg -r 9 -e $last_sys_ref >/dev/null 2>&1");
whats gdg ? with all those options.

Does it try to delete the contents of the file referenced by $last_sys_ref ?
gdg is going to be something that is called from outside perl as the line is using the 'system' call.
you will have to examine the contents of the file gdg to know what that does
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto rename a perl command ? stu7 Programming 4 07-20-2008 08:40 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
at command scheduling and perl tuxandme Linux - Software 1 06-09-2005 05:07 PM
command arguments in perl djgerbavore Programming 1 12-30-2004 08:06 AM
what is the echo command in perl? hamish Programming 5 12-14-2004 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration