The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   list all applications installed on mac using shell script (http://hintsforums.macworld.com/showthread.php?t=114715)

hayne 11-16-2010 04:21 AM

Quote:

Originally Posted by himanshu (Post 601174)
i want for network macs by giving IP

I repeat my question: what is wrong with just using 'ssh' to login to the remote Mac and then run that command?

himanshu 11-16-2010 05:06 AM

can not understan
 
Quote:

Originally Posted by hayne (Post 601172)
I don't see what is wrong with the previous suggestion to use 'mdfind' (after ssh-ing into the remote machine).

Hello Sir,
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

hayne 11-16-2010 05:48 AM

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.

himanshu 11-17-2010 08:37 AM

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

hayne 11-17-2010 10:48 AM

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.)

himanshu 11-18-2010 04:42 AM

do u want to suggest something else ?
 
Quote:

Originally Posted by hayne (Post 601318)
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.)

yes account is there, I have the current user id and pass of that machine
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

hayne 11-18-2010 05:47 AM

To use 'ssh', you have to enable "Remote Login" in Sharing Preferences on the remote machine.

Hal Itosis 11-18-2010 07:11 AM

or ask the [actual] owner to do it. ;)

himanshu 11-18-2010 08:17 AM

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

renaultssoftware 11-18-2010 06:47 PM

So you did. Are the two Macs (they should be) on the same network?

renaultssoftware 11-18-2010 06:54 PM

Quote:

Originally Posted by himanshu (Post 601174)
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

I see your error. Is the account name the same on the first computer and the other? If not, try this:
Code:

ssh -l <username> <ip_address>
Of course, replace the <username> with your actual username, and <ip_address> with the correct IP (say 10.4.201.221).

himanshu 11-19-2010 04:16 AM

i was done..no progress
 
2 Attachment(s)
Quote:

Originally Posted by renaultssoftware (Post 601474)
I see your error. Is the account name the same on the first computer and the other? If not, try this:
Code:

ssh -l <username> <ip_address>
Of course, replace the <username> with your actual username, and <ip_address> with the correct IP (say 10.4.201.221).

of course...i know that uid and pass...there are no 2 macs on same network..
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...

hayne 11-19-2010 04:29 AM

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

himanshu 11-19-2010 04:31 AM

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?

hayne 11-19-2010 04:35 AM

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.

himanshu 11-19-2010 04:35 AM

no getting
 
2 Attachment(s)
Quote:

Originally Posted by hayne (Post 601510)
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

i try above and ssh -v -l dump 10.0.0.40...this way we can not achieve result

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

himanshu 11-19-2010 05:56 AM

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

himanshu 11-19-2010 09:18 AM

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

himanshu 11-19-2010 09:34 AM

yes this is working
 
2 Attachment(s)
Quote:

Originally Posted by hayne (Post 601510)
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

hayne...this is extremly nice..above u r link is working at this time
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

himanshu 11-19-2010 10:25 AM

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


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.