LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-17-2014, 04:39 AM   #1
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Rep: Reputation: 19
Question how to see what is a command going to do?


Hi guys, long time no see


I have a maybe a very strange question, about a command, an unknown command ( googled it and found nothing)

so there is a command in my centos (last) whne I execute it it says please press enter to continue. Problem is I dont know what that command does, this is an voip / asterisk based server. It's partially installed byt a partner company. So the question is, is there a way to see what this command will do without really executing it ?
when i try to find it's location by - whereis it shows me a bash with it.

looks like this :

[root@localhost ~]# pcrack

Press enter to continue


^C

[root@localhost ~]# whereis pcrack
pcrack:





Please help / advise.

I want to know what this command does without executing it completely.
because this is a production server, so I cannot risk it.

thanks in advance.
 
Old 03-17-2014, 04:57 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
In first place, if you scare to continue and it won't impact your production service just Ctrl+C and terminate the command from the shell first.
Don't know there is a command call "pcrack" in Centos, if have just check the command have manpage for it.

OR
you can trace this command process using "strace"

Last edited by kirukan; 03-17-2014 at 05:18 AM.
 
Old 03-18-2014, 08:08 AM   #3
Sandcrawler
LQ Newbie
 
Registered: Feb 2014
Distribution: CentOS
Posts: 9

Rep: Reputation: Disabled
Hey,

No command in CentOS I know of pcrack.
Also just tried to run this on one of my Asterisk boxes - no command found.

Sounds like something custom written. As kirukan says strace or try to use locate/find rather than whereis if its a script have a look inside it see what it does.
 
Old 03-18-2014, 08:27 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Ask the partner company?
 
Old 03-18-2014, 08:32 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
probably I would try a chroot-ed environment. also try ldd pcrack to check what libs it wants to use. You may also try file pcrack to identify its type.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cygwin simple tar command fails when issues on command line deannad Linux - General 1 06-12-2013 10:22 AM
Command/Script required to send an email alert in case command will not respond rajaniyer123 Linux - General 1 05-19-2012 01:12 PM
Executing shell command from JSP file with command line arg from URL orcusomega Programming 2 01-13-2012 03:38 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:59 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