![]() |
list all applications installed on mac using shell script
I need a shell script using that I can get list of all applications installed on
mac I also need to enter IP , for perticular IP I need to find out list of applications for that mac for ex: mdfind echo /Applications/ -ls will give me list of all apps installed on my mac at path HD:Applications I also want to find out for entering IP for ex: mdfind 10.0.0.0 echo /Applications/ -ls above is structure,I need out put as above |
What IPs are you looking to find? Local, or "out there" on the Internet?
You might be able to connect with ssh or telnet, however I'm clueless about those. Hopefully some senior member can come and help. Have you searched the web for this already? |
I would use the system_profiler command line tool. It will give you all applications, not just the ones in the /Applications folder. This will do it...
Code:
system_profiler SPApplicationsDataType |
Quote:
CoreEndianFlipData: error -4940 returned for rsrc type DITL (id 134, length 125, native = no) SystemFlippers: didn't consume all data for vers ID 1 (pBase = 0x10a551640, p = 0x10a55166f, pEnd = 0x10a551670) OTOH, Spotlight's index is quite speedy. You'd be surprised how much this produces in under a tenth of a second: mdfind 'kMDItemContentTypeTree == com.apple.application' |
To help speed up the system_profiler command line binary you can use the detailLevel -mini switch on it, or use the find command for anything with an .app suffix. Unless you want to find applications specifically in the /Applications folder. Be aware that Apple puts lots of apps all over the place.
|
Quote:
Code:
BTW, those runs were done after a few reports had already been generated (i.e., some of the data was probably cached). The *original* (cold start) run took 17 seconds on my new Core i7 MBP. Also, the output format (mini or not mini) is like this... Code:
|
IPs only my for Intranet
Quote:
I have Intranet app, I need to know list of all app installed on that particular PC or mac by shell script or apple script I can find out all apps installed on my mac using mdfind echo /Applications/ -ls this type of command I need to know list for example: mdfind echo /Applications/ IP Address -ls Timer.app skype.app MySql.app Mail.app VNC.app |
Quote:
Did you try mine yet? [from post #4] |
find install apps in mac by IP
Quote:
"ls echo /Applications" works, I need this for other IP, to check required applications are installed on that PC or MAC or not |
Himanshu, we're trying to help you, and you won't try our script? What is the point of posting here?
I don't think you can use this script for PC. The echo command here is superfluous, why are you using it? |
Well if the PC runs Linux you can probably use shell code on both platforms, if it runs windows you can try the power shell, which is very "Unix-like," but the syntax does not transfer from a non Windows system to a Windows system.
what exactly is it you are trying to accomplish? You need to see if an application is installed and you need the IP of the machine? Then you need that info output to a log or what? |
more explain this thread , search all installed apps on other mac or PC
Quote:
I try your below script, this is some hi-fi,may be I am unable to post thread properly , I just need search all applications on other mac or window pc by using command "ls echo /Applications" + IP address for that machine , I check all check boxes in "Sharing" such as remote login, apple remote desktop, FTP access and I use all your scripts mentioned in this thread I am using widgetTerm 1.5 and "echo" is working fine in this widget |
Quote:
See post #4 for this command: mdfind 'kMDItemContentTypeTree == com.apple.application' BTW, i don't claim to know how to solve your *entire* problem. [nor do i quite understand how/why such a search would be used, across an entire network... and have the results returned in terms of IP numbers. Hmm, perhaps rsync could be configured to carry out such a scheme?] Quote:
I was just trying to offer more practical syntax for mdfind (i.e., besides 'echo' and '-ls') |
script not working
1 Attachment(s)
I tried
mdfind 'kMDItemContentTypeTree == com.apple.application' this is not working at all no output (pic is attach) I mean to say, I want a list on your mac contains all applications installed in application folder on HD I only know your IP address of machine, how can i do with shell script? |
search apps on other mac
Quote:
|
Hey wait. PC or Mac?
Before you use mdfind you must run this in the Terminal: Code:
cd / |
Quote:
'mdfind' does not search the current directory - it merely queries the Spotlight database. Having Spotlight enabled is of course a requirement. I suspect that is the reason why himanshu didn't get any results. |
Quote:
|
I don't see what is wrong with the previous suggestion to use 'mdfind' (after ssh-ing into the remote machine).
|
i found last for local machine,want script by IP
1 Attachment(s)
there is freeware as :http://www.belarc.com/ for windows and need same for mac
i have got ssh "10.0.0.40" sudo find /Applications -name "*.app" modify for search by IP address u r ssh-ing script I can not understand Dear Friends, I m closer, I attach a PIC now I just want 10% from you pls help this thread can close in next 24 hrs, I entered correct password but not going forward |
Quote:
|
can not understan
Quote:
I can not understand, ssh-in on remote mahcine pls take some efforts to elaborate I found sudo find / -name "*.app" gives u list of all apps on ur machine how to do remoting that I can not understand , I try all ur above answers I want simple one line script consist IP address, currently I have list of IPs in excel format |
Start here:
http://www.google.ca/search?q=how+to+use+ssh But you need to expect to spend several hours (or days) reading and learning concepts - not just looking for the exact solution to your current problem. |
hayne..pls see my #20 no thread...I use ssh there...pls refer that open that PIC use your IP address there and check this and post reply
|
That screencapture shows that you failed to login remotely on the other machine using 'ssh'. That is a separate problem that you will need to solve. Do you have an account on that machine? (You will need one.)
|
do u want to suggest something else ?
Quote:
and I also have admin pass to connect as admin but the pass is not accepted and i can not log in can u focus light more on that written shell command using ssh, do u want to suggest something else |
To use 'ssh', you have to enable "Remote Login" in Sharing Preferences on the remote machine.
|
or ask the [actual] owner to do it. ;)
|
i was done that before
hi hayne,
as per mclbruce said i was done enable option http://www.dssw.co.uk/blog/2007/05/1...-mac-os-x-104/ and then post thread here |
So you did. Are the two Macs (they should be) on the same network?
|
Quote:
Code:
ssh -l <username> <ip_address> |
i was done..no progress
2 Attachment(s)
Quote:
i have done ur above script also..no progress...snap shot is attached.....there may be network issue but as i use VNC i m able to connect that site without err... |
Try it again by with the "-v" option this time - that will give more info about what is going wrong.
ssh -v -l dump 10.0.0.40 |
OK I enter
1 Attachment(s)
OK boss I enter
showing err that attached in pIC...now can i enter password...or exit It has been given warning as data or system files will be lost what to do? |
Umm, what you showed is just the standard warning that is issued the first time a user account uses 'sudo'. You haven't seen this before???
Anyway, why are you using 'sudo' ? Let's concentrate on getting 'ssh' working. Don't run any commands in the 'ssh' line, just get a remote login session. |
no getting
2 Attachment(s)
Quote:
means instead of sudo i have to use ssh ... I take two stpes from now: as attach in *.doc : at last instead of writing exit if Can I continue with command (dump$ sudo find/Applications -type f -name "*.app") then will it give me all application list on dump mac post me reply..take u r time...(warning can distory connection or data on dump)...and i do not know how to anything more |
prob for command + K
1. after doing above scripting from terminal
there is prob for finder command + K this window is hanged and afp:// links in text box is hanged...i need to log out from system 2. i tried above command and unable to view list of all apps on 10.0.0.40 i can success remote login but unable to find installed apps on 10.0.0.40 |
thread is solved
after remote login is successful
i use command ls -l /Applications this gives me all apps installed on remote mac and then i start VNC and take a snap shot and identify both are found to be correct i close this thread here itself |
yes this is working
2 Attachment(s)
Quote:
i found one thing as u said ssh -v -l dump 10.0.0.40 done same job as ssh -l dump 10.0.0.40 "-v" is not necessary 1.ssh -v -l dump 10.0.0.40 password:xxxx 2.ls -l /Applications..............(log in one list191110.txt) 3.open VNC viewer and remote login,open finder->Applications->take snap shot .......(PIc file list191110.png) both tally they are found to be correct... I want to do more R&D....I will let u know.....thanks hayne......very much:D |
how to chek which OS is there on remote machine
Dear hayne,
i am digging how to find which os x,firefox,email agent(mac mail,entourge) version is there on remote machine by shell script |
Quote:
What about stuff in the Utilities folder? [e.g., Terminal.app] |
yes...right now not required
Quote:
|
hi..some advance..help
hi,
i m getting apps installed on other mac remotely using above but i want to get license no....and other detail properties...not getting any help..!!! |
Quote:
Each and every app will be different as well. |
ok this is nice
ok this is nice i would like to know about .plist
what .plist file i suppose to get open and read key for text file i will gather information and let u know, but first i will search |
It varies greatly. We probably don't have all your software, so bear with us.
|
i will try my best
i will try my best and I know at last moment u and hayne are there (Professional Swimmers) get me out....!!!!!!
|
Quote:
From what I know, some apps have .lic files. One app's (no prizes for guessing its name) file format is .windowFlowLicense :) Either way, I'd like to know what you want the licenses for. |
Come again? I don't quite understand your query.
|
| All times are GMT -5. The time now is 06:05 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.