Run script with .pkb extension
How do I run scripts from sql developer? I tried: file - open - mypackage.pkb. Opens file. When I do Run - Run File, I get: "The target metrics_pkg.pkb cannot be started because it is not a runnable target."
Ok, maybe I should just use @mypackage.pkb as if I was in sqlplus. Nope. I have not told it where my script resides, so I get: "Unable to open file: "C:\Documents and Settings\mthompso\metrics_pkg.pkb".
I assume there is some way to set the directory for running scripts?
Couple of things to try here.. Don't use 'Run****' from the run menu. There is a green arrow on the editor that will only be available if a target is runnable.. If it is greyed out, you don't have a connection associated. Additionally, if the drop-down list on the upper right hand side doesn't show a connection, it won't run.
And a hint to the development team.. please disable the run option under the run menu if it is not runnable :)
Eric
Similar Messages
-
Hi guys,
is it possible run a script if a flag cell is selected ??
another question...
is it possible run script when i print a table or when i save file ???
Thank'ssyrahBau wrote:
Hi guys,
is it possible run a script if a flag cell is selected ??
Numbers is unable to trigger a script by itself.
So you are free to run a script by yourself if this or that attribute is set.
another question...
is it possible run script when i print a table or when i save file ???
You are perfectly free to run a script which will save a document an do this or that action.
For the print task, at this time the response is yes but no.
If your document contains a single sheet containing a single table, you may run a script to print the document and do this or that task.
If the document doesn't match the given requirements, a script will print the entire document which is not what you asked for.
From my point of view, it would be a good idea to
_Go to "Provide Numbers Feedback" in the "Numbers" menu_,
explain them that you want a feature allowing Numbers to trigger a script
like the MACRO() function available in AppleWorks.
Then, cross your fingers, and wait _at least_ for iWork'11
Yvan KOENIG (VALLAURIS, France) mercredi 30 juin 2010 12:40:08 -
Running script with linux32 breaks package installs
Hi,
I'm running on an x86_64 system and I was trying to install the PPD and other files needed for my Panasonic KX-MB2030 printer. I tried running the install script Panasonic provided, but it complained that it's not meant for an x64 system. Then, I ran the script again with:
linux32 ./install-linux
The script ran, but now I cannot install any programs. For instance, CUPS complained that libcups wasn't working properly (probably because the script overrode some of its files), but when I go to reinstall libcups, I get a message like this:
:: package libcups-1.5.3.-5-i686 does not have a valid architecture
I've tried installing other packages, but they all complain about how the i686 version of the package is not valid. I tried to switch back using 'linux64', but Arch still won't let me install any packages.
Please let me know if you have any suggestions.
Thanks!
Matt
Last edited by stantheman286 (2012-07-08 15:56:20)Sure, here it is:
#!/bin/bash
# batch file to install Panasonic Printer Driver
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo " Install MUST be run as root" 1>&2
exit 1
fi
BUILD_CPU=i686
TARGET_CPU=`uname -m`
INSTALL_PATH="/usr/local/share/panasonic/printer"
# check can install to thie system
CAN_INSTALL=no
FILTER_PATH_SEARCH=""
MODEL_PATH_SEARCH=""
case $TARGET_CPU in
i[345]86)
case $BUILD_CPU in
i386)
CAN_INSTALL=yes
esac
i686)
case $BUILD_CPU in
i[36]86)
CAN_INSTALL=yes
esac
x86_64)
case $BUILD_CPU in
x86_64)
CAN_INSTALL=yes
esac
FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/lib64/cups/filter"
FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/libexec64/cups/filter"
FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/local/lib64/cups/filter"
FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/local/libexec64/cups/filter"
esac
MODEL_PATH_SEARCH="$MODEL_PATH_SEARCH /usr/share/cups/model"
MODEL_PATH_SEARCH="$MODEL_PATH_SEARCH /usr/local/share/cups/model"
MODEL_PATH_SEARCH="$MODEL_PATH_SEARCH /usr/share/ppd"
MODEL_PATH_SEARCH="$MODEL_PATH_SEARCH /usr/local/share/ppd"
FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/lib/cups/filter"
FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/libexec/cups/filter"
FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/local/lib/cups/filter"
FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/local/libexec/cups/filter"
if test "x$CAN_INSTALL" != "xyes"; then
echo "the package is build for $BUILD_CPU cpu, can not install to $TARGET_CPU system"
exit 1
fi
# find install dir
FILTER_PATH=""
for DIR in $FILTER_PATH_SEARCH; do
if test -d $DIR
then
FILTER_PATH=$DIR
break
fi
done
MODEL_PATH=""
for DIR in $MODEL_PATH_SEARCH; do
if test -d $DIR
then
MODEL_PATH=$DIR
break
fi
done
if test "x$FILTER_PATH" == "x"
then
echo " Cannot found CUPS filter path"
exit
fi
if test "x$MODEL_PATH" == "x"
then
echo " Cannot found CUPS model path"
exit
fi
FILTER_PROGRAMS="L_H0JDGCZAZ"
# echo informations
echo
echo " start <Panasonic Printer Driver ($BUILD_CPU)> install......"
# check and execute uninstall shell script
if test -f $INSTALL_PATH/uninstall-driver
then
echo "find exist printer driver"
echo " execute uninstall shell script now......"
if !($INSTALL_PATH/uninstall-driver)
then
echo " uninstall old <Panasonic GDI Printer Driver> failed"
echo " install driver failed"
echo
exit 1
fi
fi
SCRIPT=`readlink -f $0`
SCRIPTPATH=`dirname $SCRIPT`
PWD=`pwd`
cd $SCRIPTPATH
# echo informations
echo " start install files......"
# make install dir
mkdir -p $MODEL_PATH/panasonic/
chown root:root $MODEL_PATH/panasonic/
chmod 755 $MODEL_PATH/panasonic/
mkdir -p $INSTALL_PATH/
mkdir -p $INSTALL_PATH/bin
mkdir -p $INSTALL_PATH/conf
mkdir -p $INSTALL_PATH/data
chmod 777 $INSTALL_PATH/conf
# copy files
# create uninstall script
cat > $INSTALL_PATH/uninstall-driver <<\_______EOF
#!/bin/bash
# batch file to uninstall Panasonic Printer Driver
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo " Uninstall MUST be run as root" 1>&2
exit 1
fi
# echo informations
echo
echo " Confirmation"
echo " <Panasonic Printer Driver> uninstall"
echo
echo -n " input 'y' to continue:"
read inputval
if test "$inputval" != "y"
then
echo " uninstall be canceled"
echo
exit 1
fi
# remove files
echo " uninstall files......"
# follow is created by install script
_______EOF
chmod 755 $INSTALL_PATH/uninstall-driver
# copy lib files
INSTALL_LIB_PATH="/usr/lib"
RESTORECON=/sbin/restorecon
LIB_FILES="L_H0JDJCZAZ"
for file in $LIB_FILES; do
cp ./lib/$file.so.1.0.0 $INSTALL_LIB_PATH/
echo "rm -f $INSTALL_LIB_PATH/$file.so.1.0.0" >> $INSTALL_PATH/uninstall-driver
ln -sf $file.so.1.0.0 $INSTALL_LIB_PATH/$file.so.1
echo "rm -f $INSTALL_LIB_PATH/$file.so.1" >> $INSTALL_PATH/uninstall-driver
ln -sf $file.so.1 $INSTALL_LIB_PATH/$file.so
echo "rm -f $INSTALL_LIB_PATH/$file.so" >> $INSTALL_PATH/uninstall-driver
done
for file in $FILTER_PROGRAMS; do
cp ./filter/$file $FILTER_PATH/
echo "rm -f $FILTER_PATH/$file" >> $INSTALL_PATH/uninstall-driver
if test -f $RESTORECON
then
$RESTORECON $FILTER_PATH/$file
fi
done
# copy ppd files
PPD_FILES=`find ppd -name *.ppd`
for file in $PPD_FILES; do
cp $file $MODEL_PATH/panasonic/
file=`basename $file`
echo "rm -f $MODEL_PATH/panasonic/$file" >> $INSTALL_PATH/uninstall-driver
done
echo "rmdir --ignore-fail-on-non-empty $MODEL_PATH/panasonic" >> $INSTALL_PATH/uninstall-driver
# copy SPC & RCT files
DATA_FILES=`find data`
for file in $DATA_FILES; do
if test -d $file
then
mkdir -p $INSTALL_PATH/$file
else
if test -f $file
then
cp $file $INSTALL_PATH/$file
echo "rm -f $INSTALL_PATH/$file" >> $INSTALL_PATH/uninstall-driver
fi
fi
done
for file in $DATA_FILES; do
if test -d $file
then
echo "rmdir --ignore-fail-on-non-empty -p $INSTALL_PATH/$file" >> $INSTALL_PATH/uninstall-driver
fi
done
# copy tools
cp ./panautil/L_H0JDUIZAZ $INSTALL_PATH/bin/
echo "rm -f $INSTALL_PATH/bin/L_H0JDUIZAZ" >> $INSTALL_PATH/uninstall-driver
cp ./panautil/L_H0JDUCZAZ $INSTALL_PATH/bin/
echo "rm -f $INSTALL_PATH/bin/L_H0JDUCZAZ" >> $INSTALL_PATH/uninstall-driver
chmod 4755 $INSTALL_PATH/bin/L_H0JDUCZAZ
cp ./panautil/L_H0JDUIZAZ.png $INSTALL_PATH/bin/
echo "rm -f $INSTALL_PATH/bin/L_H0JDUIZAZ.png" >> $INSTALL_PATH/uninstall-driver
if test -d /usr/share/applications/
then
cp ./panautil/L_H0JDUIZAZ.desktop /usr/share/applications/
echo "rm -f /usr/share/applications/L_H0JDUIZAZ.desktop" >> $INSTALL_PATH/uninstall-driver
fi
echo "rm -Rf $INSTALL_PATH/conf" >> $INSTALL_PATH/uninstall-driver
echo "rmdir --ignore-fail-on-non-empty -p $INSTALL_PATH/bin" >> $INSTALL_PATH/uninstall-driver
echo "rm -f $INSTALL_PATH/uninstall-driver" >> $INSTALL_PATH/uninstall-driver
cat >> $INSTALL_PATH/uninstall-driver <<\_______EOF
# restart
echo " restart spooler - CUPS"
if test -f /etc/init.d/cups
then
/etc/init.d/cups restart
else
if test -f /etc/init.d/cupsys
then
/etc/init.d/cupsys restart
fi
fi
# echo informations
echo
echo " uninstall driver completed"
echo
echo " please use \"system-config-printer\" or \"lpadmin\" "
echo " to remove all printers based on the driver."
echo
exit 0
_______EOF
# restart CUPS
echo " restart spooler - CUPS"
if test -f /etc/init.d/cups
then
/etc/init.d/cups restart
else
if test -f /etc/init.d/cupsys
then
/etc/init.d/cupsys restart
fi
fi
cd $PWD
# echo informations
echo
echo " install driver completed"
echo
echo " please use \"system-config-printer\" or \"lpadmin\" to add printer."
echo
exit 0 -
Running movie with avi extension on mac pro
hi i am unable to run a movie that have an extension "avi"..Can any body help?
You should be able to view it using VLC.
http://www.videolan.org/vlc/index.html
You can add Finder support for it with Perian
http://www.perian.org
And you might need Flip4Mac
http://www.telestream.net/Flip4mac/overview.htm (the free download)
But VLC should give you basic viewing ability. -
CS5 - Running Script with Action. Not saving problem
I am trying to setup an action that runs a script using the "Insert menu item" command.
It all works perfectly but when I quit Illustrator and re0open it, the action has disappeared.
Is this a bug or am i doing something wrong?Additional info (no solution):
Could have something to do with the order Illustrator registers available scripts as menu commands and checking validity of action 'menu commands'.
Try this:
- Look in the File/Scripts menu and note down a scriptname in there;
- Exit Illustrator;
- Start Illustrator
- Create a new action
- In the Action Panel flyout menu chose 'Insert Menu Item...' - a Find dialog should open
- In the textbox enter the scriptname you dotted down and press Find
It tells you 'No menu item matching that name was found.'
- Press OK, then Cancel;
- Goto File/Scripts but don't select a script, close the menu
now again
- Create a new action
- In the Action Panel flyout menu chose 'Insert Menu Item...' - a Find dialog should open
- In the textbox enter the scriptname you dotted down and press Find
Now it could be found..
So it seems that when Illustrator starts:
Initializes without registering the available scripts as available menuitems
When the actions are loaded and in it is a Menu Command, it checks if that command is actually available - if not it deletes the action item
After accessing the scriptmenu the scripts are indeed registered as available menuitems..
So now if they would only register the scriptnames before loading the actions when starting Illustrator it would be solved. Or of course disable checking action commands for validity.
Sure hope they solve this soon as I can imagine it affects a lot of people. -
Red field when I try to run script with 10G
I recently installed 10G XE. I am able to create a new user and was trying to run a script for JustLeeBooks from the Thompson Course Technology books website. I downloaded the files to my computer and then went into the new user and browsed and downloaded the script. The area where the script appears is all red. When I click run, nothing happens. Should that script area be red like that?
I can click on delete and delete the script, but I can seem to run the script.
What do I need to do to run the script for my database class?
Thank you.
VickiHi,
XE pre installed Apex is quite old and might not support all new browsers.
Have you try use other browser?
You can also upgrade Apex
http://www.oracle.com/technetwork/developer-tools/apex/upgrade-apex-for-xe-154969.html
But please note you lose database management features. But you can do those e.g. with SQL developer as above link shows.
Regards,
Jari -
Running script with input values
I have a script file FV.SQL with following contents:
select * from emp where job in ( '&one' , '&two');
in sqlplus it is ok to execute script by passing input values like
SQL> @ FV CLERK ANALYST
But how it can be executed in iSQLPLUS?
Kindly suggest
Message was edited by:
JameelThanks,
I am asking to do like this in iSQL*PLUS,
SQL> ED V
SQL> ED
Wrote file afiedt.buf
1 SELECT * FROM DEPT
2* WHERE LOC IN ('&1' , '&2')
SQL> @ V CHICAGO DALLAS
old 2: WHERE LOC IN ('&1' , '&2')
new 2: WHERE LOC IN ('CHICAGO' , 'DALLAS')
DEPTNO DNAME LOC
20 RESEARCH DALLAS
30 SALES CHICAGO
--- "when i try the same in isqlplus, it shows error...?"Message was edited by:
Jameel -
Running Scripts with sqlplusw.exe
Hi,
My requirement is I've to run a script, which will take connection info (logon window) and then run my file.
much like sqlplusw.exe xx @c:\abc.sql. Now I can't put xx as username. I've to write it such a way that, it'll ask for conn info(username,password and connect string) then execute the script.
Thanks in advance.
--SouravD:\>type test.sql
conn &1/&2@&3
set lines 121 pages 1000 trimspool on
spool spool.log
select * from emp;
spool off
exit
D:\>sqlplusw /nolog @test.sql scott tiger test9i
D:\>type spool.log
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17/12/80 800 20
7499 ALLEN SALESMAN 7698 20/02/81 1600 300 30
7521 WARD SALESMAN 7698 22/02/81 1250 500 30
7566 JONES MANAGER 7839 02/04/81 2975 20
7654 MARTIN SALESMAN 7698 28/09/81 1250 1400 30
7698 BLAKE MANAGER 7839 01/05/81 2850 30
7782 CLARK MANAGER 7839 09/06/81 2450 10
7788 SCOTT ANALYST 7566 19/04/87 3000 20
7839 KING PRESIDENT 17/11/81 5000 10
7844 TURNER SALESMAN 7698 08/09/81 1500 0 30
7876 ADAMS CLERK 7788 23/05/87 1100 20
7900 JAMES CLERK 7698 03/12/81 950 30
7902 FORD ANALYST 7566 03/12/81 3000 20
7934 MILLER CLERK 7782 23/01/82 1300 10 -
I would like to know how to run scripts with xgrid.
From the Xgrid Admin manual, page 37, I created a file and added
!#/bin/sh
/bin/echo "Hello, World!"
saved the file, and gave chmod 755 hello.sh
When I run at the command line, "Hello, World" is displayed. But as Apple mentioned in the same page of the manual, I did this at the command line
xgrid -h localhost -p mypassword job submit hello.sh
Job id is displayed. Say it is 67.
I could see in the Admin interface that job is sumbitted and running. After finishing, at the command line I did a
xgrid -h localhost -p mypassword job results -id 67
Nothing is displayed. Am I doing right or missing something ?
Appreciate any help.A little comment: add to your bashrc file (in /etc/)
export XGRIDCONTROLLERHOSTNAME=yourcontroller
export XGRIDCONTROLLERPASSWORD=yourpass
so that you don't need to use -h and -p options all the time.
Am I wrong or shouldn't your commands be -job (notice the dash before job)?
I suppose because otherwise you would get a help page. Also, I suppose your beggining of file is #! instead of the inverse...
Did you try using run instead of submit? You should see the output right away.
What is the status of the job in Xgrid Admin? What happens if you use -so to direct the output to some file? -
Hi Team,
We are facing the following error when running the nightly ant build script on Mac machine for our air mobile application. We are using iOS native extensions and package with ADT. This works fine when we run the build as local user in the Mac machine. Earlier we faced some issues due to headless build and we have added the <headless-server>true</headless-server> in corresponding config files (flex-config.xml, airmobile-config.xml). After that we are facing the following error, even when we run the ant build in headless mode using the following command.
ant -Djava.awt.headless=true -f build.xml buildPackage
When running this build as local user in the Mac build machine, we see a window opening with com.adobe.air.ADT while packaging. This is the issue when running nightly build as there is no graphics window.
Can anybody please help how to get rid of this issue for nightly build using adt,jar?
Here is the error from build log:
buildiOSPackageWithNativeExtensionMac:
[echo] Export the iOS package with Native extension for ApprovalsMobile in Mac
[java] Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions.
[java] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
[java] at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
[java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
[java] at java.lang.Runtime.loadLibrary0(Runtime.java:823)
[java] at java.lang.System.loadLibrary(System.java:1045)
[java] at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.awt.Toolkit.loadLibraries(Toolkit.java:1605)
[java] at java.awt.Toolkit.<clinit>(Toolkit.java:1627)
[java] at java.awt.Dimension.<clinit>(Dimension.java:70)
[java] at com.adobe.air.validator.ApplicationDescriptorValidator.validateImageUri(ApplicationDescri ptorValidator.java:183)
[java] at com.adobe.air.validator.ApplicationDescriptorValidator20.validateElement(ApplicationDescr iptorValidator20.java:121)
[java] at com.adobe.air.validator.ApplicationDescriptorValidator25.validateElement(ApplicationDescr iptorValidator25.java:65)
[java] at com.adobe.air.validator.ApplicationDescriptorValidator26.validateElement(ApplicationDescr iptorValidator26.java:62)
[java] at com.adobe.air.validator.ApplicationDescriptorValidator30.validateElement(ApplicationDescr iptorValidator30.java:52)
[java] at com.adobe.air.validator.ApplicationDescriptorValidator31.validateElement(ApplicationDescr iptorValidator31.java:46)
[java] at com.adobe.air.validator.DescriptorValidator.endElement(DescriptorValidator.java:239)
[java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser .java:601)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML DocumentFragmentScannerImpl.java:1782)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDri ver.next(XMLDocumentFragmentScannerImpl.java:2939)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImp l.java:648)
[java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScanne rImpl.java:140)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo cumentFragmentScannerImpl.java:511)
[java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.ja va:808)
[java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.ja va:737)
[java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
[java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java :1205)
[java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.j ava:522)
[java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
[java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
[java] at com.adobe.air.Descriptor.validateXML(Descriptor.java:182)
[java] at com.adobe.air.Descriptor.<init>(Descriptor.java:56)
[java] at com.adobe.air.ApplicationDescriptor.<init>(ApplicationDescriptor.java:84)
[java] at com.adobe.air.ApplicationPackager.validateApplicationDescriptor(ApplicationPackager.java: 101)
[java] at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:64)
[java] at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:217)
[java] at com.adobe.air.ADT.parseArgsAndGo(ADT.java:557)
[java] at com.adobe.air.ADT.run(ADT.java:414)
[java] at com.adobe.air.ADT.main(ADT.java:464)
Thanks,
Swathi.Note: Before the above error that were two other errors .
1) The build complained that the adt-bundle-linux toolchain could not be found and required that it be added to .mozconfig. This was done.
2) The build complained that dx could not be found.
The configure file was edited and the values $DX, $AAPT and $AIDL were all set to the adt-bundle-linux/sdk/build-tools/android-4.4 path.
The instructions given on the Mozilla Wiki did not work right for Android and several modifications were made to move it along. But this permission error is tough to figure out. -
Running powershell script with customer parameters as a scheduled task
tfl wrote:I guess I don't get why you are wanting thisMy regular tasks run,. and take data from data files. Want your batch to get processed today? Then add it to the queue file by 5:00 PM.. The task runs at 5:01 and works with whatever data is available. And if the file is empty, nothing happens each night. If you want to pass parameters like this, then why bother with a scheduled task? You'd need to remove the old one and add the new one each time. Which is extra work and complexity, especially if the task at hand is in any way 'dangerous' if run twice with the same data (ie you forget to change the task or remove it).I'm using a scheduled task to trigger the script, I'm using the "on event" trigger and then calling the script as an action. The method I was using before (calling via a bat file with the event Id hard coded into that"...
Hi all,Having one of those hair pulling issues where something should work but for some reason its blindly refusing not to!I've created this script that is a bit of an extension to the email on eventID for task scheduled. It basically pulls out the various information from the actual event and fires off an email to our alerting team to investigate etc.That all works great, but what I'm now trying to do is get it to accept a custom parameter so the actual event ID its looking for doesn't have to be hard coded and can be passed to it via the commandline etc. I've got it all setup and work great but for the life of me can't get it to work correctly when set as a scheduled task. This is what the command basically looks like:powershell -executionpolicy bypass -command "& 'pathtofile\script.ps1' -evtid 8004"The latter part is the customer...
This topic first appeared in the Spiceworks Community -
CRS Script: AutoAttendant option overlapping with internal extension
I'm trying to have an AA.aef script with five options, you know something like: press 1 for Marketing, press 2 for Management, ....and press 5 for Customer Service. The problem is that the internal phone extensions start with 5xxx. Is there a way to have the fifth option on the aa menu and also allow the caller to dial the extensions directly?
you can use 5 as your option however when you are using 1-5 or the 5xxxx you do a check so you should either use 5xxxx or use one of the 5 extension on the main menu and chose a option for dial by name or extension.
selection 1 can be sub menu and any other 5 digit will be your extions. The best practice is to seperate out the direct extension dial to a sub menu and have main menu with top options 1,,2,3....so on.
If you are good with CRS you can get direct dial and all 5 options but its bit work and lot of script work not really recommended and in long run its not worth it.
hope it helps. Please rate helpful posts. -
What is the best way to run a powershell script with parameters in the Task Scheduler?
Hello,
Want to run the following from a scheduled task in the Task Scheduler on a server. What is the best approach?
.\pscript.ps1 -csvfile "\\Srv1\Share\File.txt"
Thanks for your help! SdeDotHi,
To run a powershell script with parameters in the Task Scheduler:
Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Add argument (optional): -Command "& c:\scripts\test.ps1 -par1 2 -par2 3"
Hope the below two articles be helpful for you:
Schedule PowerShell Scripts that Require Input Values
https://blogs.technet.com/b/heyscriptingguy/archive/2011/01/12/schedule-powershell-scripts-that-require-input-values.aspx
How to Schedule a PowerShell Script
http://dmitrysotnikov.wordpress.com/2011/02/03/how-to-schedule-a-powershell-script/
Regards,
Yan Li
Regards, Yan Li -
"Run Script" (F5) Flacky Behavior with CREATE PROCEDURE and PACKAGE
When I have the following create statement in a SQL Worksheet and run the script using "Run Script" (F5), I get the "PROCEDURE bogus Compiled." message. Why does it not tell me that there was a compile error? The procedure is marked with a little red "X" in the connections pane.
CREATE OR REPLACE PROCEDURE bogus IS
BEGIN
x := 1;
END;
/Also, when I have the following command in a SQL Worksheet and run the script using "Run Script" (F5), I get the "PROCEDURE bogus Compiled." message. The difference is that I removed the slash after the CREATE PROCEDURE command. I can go into that procedure in the database via the Connections pane, click on the compile button, and the procedure compiles with no errors. Why does it not compile in a script when missing the slash?
CREATE OR REPLACE PROCEDURE bogus IS
BEGIN
NULL;
END;I noticed the same flaky behavior with CREATE PACKAGE BODY as well. This is in version 1.0.0.14.67 on Windows XP. Has this been fixed in the latest version?
MikeI found a number of earlier posts on this (going back to at least v804), but I cannot find a thread with a response from the SQL Developer team - see:
Package compilation error
Succesful compilation message and Compiling Invalid Objects
Creating a stored procedure from a file does not show compilation errors
Re: Syntax Error Feedback
I assume that it is just a bug with SQL Developer that it does not check for compilation errors when determining the status message to display (ie "PROCEDURE bogus Compiled"). At least now we get the little red cross on the navigator to tell us it is invalid :) -
CS3 script runs slow with CS4 and CS5
I have written a table transformation script for InDesign CS3, which formats an imported Excel table.
With InDesign CS3 the script runs well. Now I tried the same script with InDesign CS4 and CS5 and it runs very slow. It's about 10 times slower than with CS3.
I tried to turn off redrawing, but this didn't help. It even got slower again!
Does someone has made similar experiences? Could you solve the performance issue?
Do scripts in CS4/CS5 generally run slower than in CS3?
Does CS4 differ so much to CS3 that the script runs 10 times slower?
What can I do to improve the execution performance?
Thanks for any tips / advices etc.I now have made some tests with profile / timing. Here are the results.
you find the code snipped below. It iterates first over all rows and then over all cells inside of the row. In the cell iteration, the function hasGapInLineBelow(...) does more iterations.
The example is with a table of 42 rows and 9 cells.
I have compared CS3 and CS5
there are 3 test cases:
for 1/1 means: first for-loop is in iteration 1 and second for loop is in iteration 1 (statements for first row and first cell done)
for 1/9 means: first for-loop is in iteration 1 and second for loop is in iteration 9 (statements for first row and all 9 cells of the row done)
for 2/9 means: first for-loop is in iteration 2 and second for loop is in iteration 2 (statements for second row and all 9 cells of the row done)
it's strange that normal variable assignments take lot of time (like the statement startPos = indexLeftNeightbourOfCurrentCell;) -> I don't understand why this can be so time consuming!?!
it's also strange why in "for 1/9" and "for 2/9" variable assignments take much longer than in "for 1/1"...
could I use another data type than array for the variable isMergedRow? Which one?
do you know any performance optimizations?
in which time unit ExtendScript Toolkit shows the measured periods?
how are the times calculated in loops? Are these the times sumed up over all iterations or is it just the time for a single statement?
Maybe you are looking for
-
Any UserExit while Posting Shipment cost?
Dear All, SD transportation/shipment cost integration with MM-Account Payable. Process: 1. VA01 - create sales order 2. VL01n - create Delivery 3. VL02n - PGI 4. VT01n - create Shipment 5. VI01 - create shipment cost doc. Here PO will get generated
-
I'v got an N70. I'v moves my messages to phone memory from my mmc card by moving the Mail folder from E:/System to C:/System they are moved and can be seen in my phone messasges but they cannot be opened now ! What to do now?
-
How can I transfer my itunes from my iPad to my new computer?????
-
What are the screens made of on iPod nanos?
Hi I am looking to buy an iPod nano, most interested in 6th gen but everything from 4th onward looks decent to me... My current music player is last years model of the 8gb Sony Walkman. The very first time I put it in my pocket and went for a walk,
-
I'm in the process of moving from one version of OID to another. We use certificates and a java class to map incoming certificates to a user in the OID. Works fine and has for a long time. When I try the working code against the 10.1.4.3 OID instance