I'm getting the following errors when I try to write a script to unzip some zip files. When I use the free trial copy of the commerical winzip program, however, they work fine. When I use -l or -t on unzip it indicates no errors. When I use the -o switch interactively from the bash command line it... (1 Reply)
Hi,
I use AIX (ksh) and Linux (bash) servers. I'm trying to do scripts to will run in both ksh and bash, and most of the time it works. But this time I don't get it in bash (I'm more familar in ksh).
The goal of my script if to read a "config file" (like "ini" file), and make various report.... (2 Replies)
I want to write a bash script to:
1. Send an email from localhost to an external gmail account. (gmail then automatically forwards the message back to a pop account on the same server.
2. Script waits 3 minutes then checks to see if the email arrived, and if not, it sends an email to... (9 Replies)
Im trying to write a script using the host command but its not working properly. I cant understand what Im doing wrong. When I use it at the command prompt, it works fine. But its being used actually in the script, it says its not found: 2 SERVFAIL. Can anyone help me? Here's what I have so far: no... (6 Replies)
Hi,
I need to automate some repacking tasks of a boot image for Android
When in command line, I can use this command:
mkbootfs /path/to/root > /path/to/ramdisk-recovery.cpio;However, if I try to run the command from a shell script under Ubuntu, it fails and outputs to stdout instead of the... (27 Replies)
Hello,
I want to write a bash script to delete the content after '#'. However, if '#' appears in a string with "", ignore this. For example,
input file:
test #delete
"test #not delete"
Output file:
test
"test #not delete"
Does anyone know how to write this script?
Thanks (1 Reply)
Hi,
I have a bash script to run many system commands on CentOS machine, but I am puzzled by some commands had no effect on parent environment.
For example, I want to refresh the desktop xdg menu when some processes added or deleted items from desktop xdg menu. If I run "killall gnome-panel"... (4 Replies)
Hi,
I wanted to load data from HDFS to HIVE by writing bash script.
Description:
I have written a bash script to validate the data and loaded validated data from local file system to HDFS. Now in the same bash script i wanted to load the data from HDFS to HIVE. How can i do it ? Also how tyhe... (2 Replies)
Hi,
I have a script file where i'm validatig the input file and storing the validated records on HDFS.
I wanted to load data from HDFS to HBASE using pig script. So for that i have created a HBASE table and written pig script to load data from HDFS to HBASE which is working fine. Now i wanted... (0 Replies)
Discussion started by: shree11
0 Replies
LEARN ABOUT PHP
com_event_sink
COM_EVENT_SINK(3) 1 COM_EVENT_SINK(3)com_event_sink - Connect events from a COM object to a PHP objectSYNOPSIS
bool com_event_sink (variant $comobject, object $sinkobject, [mixed $sinkinterface])
DESCRIPTION
Instructs COM to sink events generated by $comobject into the PHP object $sinkobject.
Be careful how you use this feature; if you are doing something similar to the example below, then it doesn't really make sense to run it
in a web server context.
PARAMETERS
o $comobject
-
o $sinkobject
-$sinkobject should be an instance of a class with methods named after those of the desired dispinterface; you may use
com_print_typeinfo(3) to help generate a template class for this purpose.
o $sinkinterface
- PHP will attempt to use the default dispinterface type specified by the typelibrary associated with $comobject, but you may
override this choice by setting $sinkinterface to the name of the dispinterface that you want to use.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
COM event sink example
<?php
class IEEventSinker {
var $terminated = false;
function ProgressChange($progress, $progressmax) {
echo "Download progress: $progress / $progressmax
";
}
function DocumentComplete(&$dom, $url) {
echo "Document $url complete
";
}
function OnQuit() {
echo "Quit!
";
$this->terminated = true;
}
}
$ie = new COM("InternetExplorer.Application");
// note that you don't need the & for PHP 5!
$sink = new IEEventSinker();
com_event_sink($ie, $sink, "DWebBrowserEvents2");
$ie->Visible = true;
$ie->Navigate("http://www.example.org");
while(!$sink->terminated) {
com_message_pump(4000);
}
$ie = null;
?>
SEE ALSO com_print_typeinfo(3), com_message_pump(3).
PHP Documentation Group COM_EVENT_SINK(3)