找不到运行窗口 [英] No Running Window Found

查看:158
本文介绍了找不到运行窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试使用perl为facebook使用自动登录脚本,并且在尝试从脚本启动浏览器时遇到错误消息.

我已经将我用来启动浏览器的模块粘贴到了下面.在我看来,这是一个错误.任何人都可以建议我一种解决方法吗?

1)我使用的第一种方法:

Hi All,

I was trying an auto login script for facebook using perl, and I encountered an error message while i was trying to launch the browser from the script.

I have pasted below the module that I was using to launch the browser. Looks to me like its a bug. Can anyone please suggest me a workaround ?

1) First Method I used :

my $launchBrowser = 'firefox -remote \"openURL($linkURL)\"';
if ( fork() == 0)
{
   exec($launchBrowser);
}



2)方法2:



2) Method 2 :

 my $launchBrowser = '/usr/bin/firefox -a firefox -remote  \"openURL('$linkURL',new-tab)\"';
if ( fork() == 0 )
{
    exec ( $launchBrowser);
}



这两种方法都返回相同的错误消息,
错误:未找到运行窗口

谢谢,
Harsha



Both these method return the same error message,
Error: No running window found

Thanks,
Harsha

推荐答案

launchBrowser = ' firefox -remote \"openURL(
launchBrowser = 'firefox -remote \"openURL(


linkURL)\"'; 如果(fork()== 0 ) { exec(
linkURL)\"'; if ( fork() == 0) { exec(


launchBrowser ); }
launchBrowser); }



2)方法2:



2) Method 2 :

 my 


这篇关于找不到运行窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆