Hi,
I am looking for a script wherein i will be able to execute below procedures one by one in line and next procedures starts only when the previous one completes and also after execution of each procedure i will be getting a automted mail as "PL/SQL PROCEDURE SUCCESSFULLY EXCETUTED".
Quote:
exec dbms_stats.gather_table_stats(' ',' ');
exec dbms_st
I am trying to write a small bit of PL/SQL that has a non-CPU burning sleep in it.
The following works in sqldeveloper
begin
dbms_lock.sleep(5);
end;
BUT (as the same user), I can't do the following:
create or replace
procedure sleep(seconds in number)
is
begin
dbms_lock.sleep(seconds);
end;
without the error "identifer "DBMS_LOCK" must be declared...
I have a bash script, exec.sh like
some command
expect test.exp
continue other command
in the test.exp file, I have a snippet like:
while {[gets $cmds command]>=0} {
send "$command\r"
expect {
"*OK*" {puts $vout $command}
"*fail*" {puts $iout $command}
"*blocked*" { what should I put here????}
}
}
so I want to put something in the curly bracket so that the executio
Is there a way to use exec, but if exec fails to go on with the script?
Example:
Code:
#!/usr/bin/env bash
exec startx
echo "Starting of X failed"
If startx fails, the echo will be seen on the screen.
I tried all kind of stuff, but guess it ain't of much use to post it here.
I have a script (ksh, Linux) which is about 500 lines and this is only a small requirement. Below is an example of my requirement.
Code:
FunctionThis(){
echo "You are in this. Goes to log"
}
FunctionThat(){
echo "You are in That. Goes to log"
}
FunctionScreen(){
echo "You are in Screen.
I replaced gdm with slim. Everything seems to work fine, except screen lock after sleep (= suspend to ram). This is my login_cmd from /etc/slim.conf:login_cmd exec /bin/sh - ~/.xinitrc %sessionThis is my .xinitrc:#!/bin/sh
case $1 in
i3)
exec i3
;;
*)
exec dbus-launch openbox-session
;;
esacI use acpid to handle sleep actions.
I am using this code on Ubuntu 13.04,
$cmd = "sleep 20 &> /dev/null &";
exec($cmd, $output);
Although it actually sits there for 20 seconds and waits :/ usually it works fine when using & to send a process to the background, but on this machine php just won't do it :/
What could be causing this??
I'm tried to parameretrize in a variable the file descriptor number to open a tcp socket using exec command but it failed. Only work correctly when file descriptor number is a constant.
I'm on Solaris 10 and I have tested the following with ksh(88), bash(3.00) and zsh(4.2.1).
The following code doesn't yield any result:
function foo {
echo "Hello World"
}
find somedir -exec foo \;
The find does match several files (as shown by replacing -exec ...