The -remote makes sure that I go and open the URL in an existing instance of mozilla.
This is what is happening inside. I start the server. Login with a user. Sync the data on the client. After that the server restarts itself and gives a login page to the user who just did the sync.
If I am user U1 and have the server running in the context of U1, then the above will work.
But if I am user U2 on the same machine, using the server running on U1, then while doing an execv on the above shows me the following at the prompt of U1.
No running window found.
This message is shown when mozilla doesnt find a running instance of the /usr/bin/mozilla.
Now, there is another option,
which will tell me if there is an instance of mozilla running or not. My problem is how can I capture the result of the above ping command inside my application.(if it possible).
Possible work-arounds that you may come up is:
1. Give a
. I know that and do not want to use that.
2. Use /usr/bin/mozilla -remote "ping()" in a shell script. I need to run the whole thing within the context of the application. No using external scripts.
uname -a is Linux xxxxxxx 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux
I will try to give you as much details(if needed), but I cant give out the code. Company policy.
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
HOSTS="192.168.138.155"
COUNT=4
pingtest(){
for myhost in "$@"
do
ping -c "$COUNT" "$myhost" &&return 1
done
return 0
}
if pingtest $HOSTS
#100% failed... (4 Replies)
I got the service status through nc on remote network but 2 services doesn't have port number.how to get the other 2 services status with out port number .pls provide the solution to me.
I need to develop with is in a script (2 Replies)
I put this thread to shell and bsd, because I want to resolve this matter on bsd.
May somebody can explain to me how to ping a remote server, in unix. BTW the following code examples were tried on a linux system as well, with the same output, nothing. But on my bsd are not installed nmap neither... (4 Replies)
Actually. I was getting a ping to remote host failed for one of my etherchannel. When I checked it was in backup adapter and again I use to faileover and brought to primary channel.
But it was again going to backup channel and giving me the alert ping to remotehost failed. When I checked the load... (3 Replies)
Hi
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
if ($p->ping($host,1)){
print "$host is alive.\n";
}
else {
print "$host is unreacheable.\n";
}
$p->close();... (4 Replies)
Hi,
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 152.155.180.8 30
Sending 30 Ping Packets to 152.155.180.8
!!!!!!!!!!!!!.!!!!!!!!!!!!!!!.
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Hi Friends,
Can some one please guide me on how to make a script run on a remote UNIX machine from a java application.
Or may if you can just tell me how do u ping to the remote UNIX machine using java code.
Been looking for the solution since 5-6 hrs, didn't got any where near :(
Thanks. (1 Reply)
Hi community,
I've a problem with mozilla 1.7. I'm working on Sun Workstation with Solaris10 and I just installed java 1.6_0 but when I start a GUI from a remote Server I see that the version is still 1.5.
the output of " java -version" shows 1.6.
Maybe is a problem with a mozilla link... (1 Reply)
Hi there
I am running a script on a central box (boxA) that will send a remote request to boxB to perform a ping test to an ip
note: I am not pinging boxB from boxA but sending a request over ssh to get boxB to perform a ping test !
The thing is, I want the script back at boxA to know... (4 Replies)
Hi,
Can anybody help me out why l can't not ping my server with Openserver 5.0.4 with my windows machine from a remote site.
The machine could see the local LAN with the Router however, i can't ping or telnet unto the server from another site on the WAN. The default gateway was configure on the... (0 Replies)