Unique Script Questions-timed startup?
Hello All,
I am long time mac fanatic with some unusual script questions. I have a project ongoing where I will need to put my pb 15" in a remote location with a Canon camera. Canon has transmitter device which will allow me via ethernet to ftp to my pb.
Here's essentially what I need to the script to do and I am trying to find out just how feasible this is. I need my laptop to bootup to receive photos via ftp at a certain time period. The camera will send to the builtin ftp software. Once booted I need the script to hold for period of about an hour. Once time has elapsed I need the script to connect to the internet via a broadband EVDO card. We are using one of the EVDO cards built in to Tiger. It then must ftp a folder of images to a remote server.
Simple, huh? : ) I am running Transmit as my ftp software. I believe it is scriptable and will watch a folder to send.
Any ideas? I'd love to hear them. I can be reached via scott at scottaudette.com.
This setup is going be used in very cool photo location but I can't publicly announce where.
Scott
G5 and PB 15" Mac OS X (10.4.7)
'Transmit ... I believe it is scriptable' - yes it is. Go to How can I use AppleScript with Transmit? to download sample 'Transmit' scripts.
'Once booted I need the script to hold for period of about an hour.' - well then, save the script as a 'stay open' application, with an 'on idle () ... end idle' handler - with a return of (60 * 60) seconds; and then drag the saved application onto the 'System Preferences' 'Accounts' 'Login Items' tab's list - of the user which the Mac will boot to (when turned ON).
Mac OS X (10.4.4)
Similar Messages
-
Quick SAP Script question New Page Print
Quick SAP Script question
I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
I need to do this from within the form as the print program is SAP Std.
Any idea how I can prevent the new page from printing?
i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?Hi,
To trigger a new page, there is script ediotr command NEW-PAGE.
so find where is that command is triggered and use the below code for trigger it on any specific condition....
if &condition& = 'True'
/* NEW-PAGE
elseif
/: NEW-PAGE
endif
so it means if condition is satisfied your new page will not work.. else it will...
Hope you got it...
Try this..
Best luck..
Regs,
Lokesh. -
[RESOLVED] Script at KDE startup
I'm trying to run a script at KDE startup, I tried the following:
user.desktop file in:
$HOME/.config/autostart
or a all.sh file in:
$HOME/.kde4/Autostart
The former has my preference. I checked that these scripts and paths are present and enabled in KDE System Settings -> Startup and Shutdown but these files do not seem to be triggered by KDE. What could be the problem? If I double-click on the desktop file in a file explorer, then the script does get launched, so it does not seem the be a corrupt desktop file.
My desktop file:
[Desktop Entry]
Exec=sh -c "${HOME}/%/start/all.sh"
Hidden=false
Name=User Startup
Type=Application
Last edited by OutOfPhase (2011-11-20 21:34:25)You could try using the autostart kcm in systemsettings. By default, you should find that plasma-desktop (or netbook) and perhaps krunner are pre-enabled for autostarting. If you want to dig deeper, these files are being placed in .kde4/share/autostart/, not in the directories you've been trying. Try the GUI for easy set up. Or place your .desktop files in that directory and edit accordingly (using the already working .desktop files as a guide) to have it work.
Last edited by karper (2011-11-15 20:36:08) -
Scripting Question - Very Basic
Hello, I'm using the trial version of InDesign and am wondering if because it's the trial version that I can't load custom scripts from Adobe? I've downloaded and installed a Custom Calendar script [I can see the extracted files in/on my PC] but the app apparently doesn't see it. Any help you can offer is greatly appreciated. Thanks,
Thank you so much, you were spot on.
From: Peter Spier <[email protected]>
To: Friar5 <[email protected]>
Sent: Monday, December 12, 2011 3:18 PM
Subject: Scripting Question - Very Basic
Re: Scripting Question - Very Basic created by Peter Spier in InDesign - View the full discussion
Have you put thew script in a location that InDesign uses for scripts? See How to install scripts in InDesign | InDesignSecrets
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4079869#4079869
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4079869#4079869. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in InDesign by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
The last couple of days I have been getting script errors on startup - Script: chrome://global/content/bindings/browser.xml:194 ,
I am also getting shutdown errors when I power down "end program" types including sgtray.exe, hkcmd.exe, directcd.exe, msascui.exe, d3d9window.exe,
Some of these are associated with programs I use but have not caused problems previously.This post can help you with your problem : https://support.mozilla.org/en-US/kb/warning-unresponsive-script
Hope it helps :) -
How to create a script for DB Startup
Hi to all,
I need to create a script for DB Startup with this command:
sqlplus /nolog
conn sys/mypwd as sysdba;
startup;
exit
It is possible ?
At now, when I run Sqlplus /nolog I see only the prompt sql>.
I Hope in Your help.
Best Regards
GaetanoHi,
Assuming you are on Windows environment. You may use the following two scripts to startup the database.
startup.bat
========
net start OracleServiceYOUR_INSTANCE_NAME
set oracle_sid=YOUR_INSTANCE_NAME
D:\oracle\product\10.2.0\db_1\bin\sqlplus /nolog @C:\DBA\startDB.sql
net start OracleOraDb10g_home1TNSListener
pause
startDB.sql
=========
connect sys/your_password as sysdba
startup pfile=D:\ORACLE\ORADBA\pfile\init.ora
exit
Similarly, you may write your own shutdown script. -
Hi all,
Could anyone advise me if i can add anything within - header('Location: http://www.mysite.co.uk/thankyou.html'); in the script below so as the page
re- directs back to the main index page after a few seconds ?
Thankyou for any help.
<?php
$to = '[email protected]';
$subject = 'Feedback form results';
// prepare the message body
$message = '' . $_POST['Name'] . "\n";
$message .= '' . $_POST['E-mail'] . "\n";
$message .= '' . $_POST['Phone'] . "\n";
$message .= '' . $_POST['Message'];
// send the email
mail($to, $subject, $message, null, '');
header('Location: http://www.mysite.co.uk/thankyou.html');
?>andy7719 wrote:
Mr powers gave me that script so im rather confused at this point in time
I don't think I "gave" you that script. I might have corrected a problem with it, but I certainly didn't write the original script.
What you're using is far from perfect, but to suggest it would lay you open to MySQL injection attacks is ludicrous. For you to be prone to MySQL injection, you would need to be entering the data into a MySQL database, not sending it by email.
There is a malicious attack known as email header injection, which is a serious problem with many PHP email processing scripts. However, to be prone to email header injection, you would need to use the fourth argument of mail() to insert form data into the email headers. Since your fourth argument is null, that danger doesn't exist.
One thing that might be worth doing is checking that the email address doesn't contain a lot of illegal characters, because that's a common feature of header injection attacks. This is how I would tidy up your script:
<?php
$suspect = '/Content-Type:|Bcc:|Cc:/i';
// send the message only if the E-mail field looks clean
if (preg_match($suspect, $_POST['E-mail'])) {
header('Location: http://www.example.com/sorry.html');
exit;
} else {
$to = '[email protected]';
$subject = 'Feedback form results';
// prepare the message body
$message = 'Name: ' . $_POST['Name'] . "\n";
$message .= 'E-mail: ' . $_POST['E-mail'] . "\n";
$message .= 'Phone: ' . $_POST['Phone'] . "\n";
$message .= 'Message: ' . $_POST['Message'];
// send the email
mail($to, $subject, $message);
header('Location: http://www.example.com/thankyou.html');
exit;
?>
Create a new page called sorry.html, with a message along the lines of "Sorry, there was an error sending your message". Don't put anything about illegal attacks. Just be neutral.
By the way, when posting questions here, don't use meaningless subject lines, such as "Quick script question". If you're posting here, it's almost certain to be a question about a script. It doesn't matter whether it's quick. Use the subject line to tell people what it's about. -
Can I post here(Acrobat Windows) Java Script questions here?
Hello
Can I post here(Acrobat Windows) Java Script questions here? If not, wht is the correct forum?
THank youBack up and down to Acrobat Scripting. Bot Windows and MacIntosh Acrobat versions use the same JavaScript.
If you are using LIVECYCLE DESIGNER use their forums. The JavaScript syntax and objects are different in LIVECYCLE DESIGNER! -
Need steps to run a shell script at solaris startup
Hi Forum,
I have a simple script which need to get executed at the time of solaris 10 system startup. Can any one tell me procedure to make the script run at startup in solaris 10 sparc systems.
Regards
PrakashThe best way is to setup a SMF manifest so that the svc process can handle your program. The easiest way however is to simply put the script within the legacy init.d structure. Check out /etc/init.d and the README file in there. Also be sure to look into the init.d(4) manualpage.
Easiest way IMO. -
Secure Shell Startup script question. Please inquire within.
In the /etc/rc2.d dir I have a S99 script for secure shell that I want to automatically start when I init 6 my server. Where do I place this script in order for it to start up instead of me manually starting it up after the server reboots?? Thank you in advance.
Actually the problem is that the $* (or $@) is expanded when the alias is created and of course at creation time the $* is empty.
So it's not really so much
emacs & $*
as
emacs & filename
But either way you are correct that to pass a command line arg in a case like this you need to use a function.
But the fact still remains that the standard OS X emacs will block waiting for a terminal if started in the bg.
regards
Message was edited by: Frank Caggiano -
Solaris 11 - run a simple BASH script on computer startup
I need to have a simple BASH script run on my Solaris 11 machine automatically whenever the computer (re)starts. It should be run with root permissions and after the computer has fully booted. What is the easiest way to do that?
Thank you
DusanHi user9368043
Yes, that should be right, and be intended this way.
See /etc/rc3.d/README and the following part from smf(5):
Legacy Startup Scripts
Startup programs in the /etc/rc?.d directories are executed
as part of the corresponding run-level milestone:
/etc/rcS.d milestone/single-user:default
/etc/rc2.d milestone/multi-user:default
/etc/rc3.d milestone/multi-user-server:default
Your question concerning upgrading to Solaris 11.1:
In the Gnome menus, you should look for (and start)
System --> Administration --> Update Manager
Let it do its work. It will give you a new boot environment, containing Solaris 11.1. Possibly, you have to perform upgrading twice. With "beadm activate", see beadm(1M), you can go back to Solaris 11.0 whenever you want.
"Local" parts of your zfs root pool, like /usr/local, home directories, /root, and so on, should be in separated file systems, and be mounted outside the root pool before upgrading. They are availlable then from any boot environment, and will not be duplicated. See more in zfs(1M), zpool(1M).
I strongly recommend upgrading. Solaris 11.1 is great. -
Noob question. Startup Oracle database?
Hi folks!
I know, this question is quite common.. But I really need a "tutorial" to startup "my" database, I really can't get it started..
The server that the database is running on was restarted a few weeks ago and now I'm trying to get the db up and running again, so far without any luck..
It's a Oracle 10.2 on a Linux Redhat machine and I have absolutly no experiance of Oracle before.. The previous "expert" on this DB left the following instructions if the server had to be restared:
"start the enterprise manager and the start the listener and database from there."
That's about all documentation there is about the whole thing..
So... What have I tried so far?
Tried to start EM by using the following command:
"+emctl start dbconsole+"
But the system could not regonize the command "emctl".
Then I created a .login-file that set up some eniviroment variables:
setenv ORACLE_HOME /local_disk/oracle/oracle/product/10.2.0/db_1
setenv PATH $ORACLE_HOME/bin:$PATH
setenv ORACLE_SID orcl
After done that I could run "emctl start dbconsole".
When I login to the EM page the database, listener and agent connection is down. And that is expected I guess. But in the "Agent connection" area it siad that it has faild with the following error "ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)"
So I've started the listener from the EM page and it seems to start up but when I try to start the database the following error occurs:
"+Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor The Connection descriptor used by the client was: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=my.domain.se)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))+"
I'm guessing that there is something more to do than just "start the f****g EM and everything will be OK"...
Could someone of you guys (or girls) help me with a noob tutorial how to start this database? I'm starting to panic here... :)
Edited by: 921802 on 2012-mar-19 04:15Ok, a beer it is.. ;)
Yes there are some sh scripts under ORACLE_HOME but nothing like "startup.sh" or something similar..
This is the list of scripts..
./oracle/product/10.2.0/db_1/sysman/admin/scripts/topprocs.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/swapList.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/restartodiserver.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/jobs/testSQLScript.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/purgeCollectionsOid.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/checkCollectionOid.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/allprocs.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/checkOidCredentials.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/ifconfig.sh
./oracle/product/10.2.0/db_1/sysman/admin/scripts/reportsproc.sh
./oracle/product/10.2.0/db_1/ldap/schema/oid/create_subscriber.sh
./oracle/product/10.2.0/db_1/ldap/schema/oid/designate_default_subscriber.sh
./oracle/product/10.2.0/db_1/ldap/schema/oid/create_default_subscriber.sh
./oracle/product/10.2.0/db_1/jdbc/bin/fixJDBC-tm4ldaps.sh
./oracle/product/10.2.0/db_1/install/createseed1.sh
./oracle/product/10.2.0/db_1/install/utl/read.sh
./oracle/product/10.2.0/db_1/install/utl/root.sh
./oracle/product/10.2.0/db_1/install/createseed.sh
./oracle/product/10.2.0/db_1/install/rootdeletenode.sh
./oracle/product/10.2.0/db_1/install/unix/rootadd.sh
./oracle/product/10.2.0/db_1/oui/bin/addNode.sh
./oracle/product/10.2.0/db_1/oui/bin/runConfig.sh
./oracle/product/10.2.0/db_1/oui/bin/ouica.sh
./oracle/product/10.2.0/db_1/oui/bin/addLangs.sh
./oracle/product/10.2.0/db_1/oui/bin/runInstaller.sh
./oracle/product/10.2.0/db_1/oc4j/j2ee/home/jazn/install/postinstall.sh
./oracle/product/10.2.0/db_1/oc4j/j2ee/home/jazn/install/generateldif.sh
./oracle/product/10.2.0/db_1/network/install/sqlnet/setowner.sh
./oracle/product/10.2.0/db_1/inventory/Templates/install/rootdeletenode.sh
./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/addNode.sh
./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/runConfig.sh
./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/ouica.sh
./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/addLangs.sh
./oracle/product/10.2.0/db_1/inventory/Templates/oui/bin/runInstaller.sh
./oracle/product/10.2.0/db_1/inventory/Templates/bin/gsd.sh
./oracle/product/10.2.0/db_1/inventory/Templates/bin/netca_deinst.sh
./oracle/product/10.2.0/db_1/rdbms/install/rootadd.sh
./oracle/product/10.2.0/db_1/rdbms/install/rootadd_filemap.sh
./oracle/product/10.2.0/db_1/rdbms/install/rdbms/obsprm.sh
./oracle/product/10.2.0/db_1/rdbms/install/rdbms/shutdown.sh
./oracle/product/10.2.0/db_1/rdbms/install/rdbms/verf_grp.sh
./oracle/product/10.2.0/db_1/bin/makerootca.sh
./oracle/product/10.2.0/db_1/bin/gsd.sh
./oracle/product/10.2.0/db_1/bin/emrepdown.sh
./oracle/product/10.2.0/db_1/bin/netca_deinst.sh
./oracle/product/10.2.0/db_1/bin/agentok.sh
./oracle/product/10.2.0/db_1/root.sh -
FLASH MX 2004 action script question
Hi!
I need to create an script for a basic function; when mouse goes over a moveclip, that works also link, I want it to trigger an invisible red dot on a nerby map. I have created a movieclip and named it "red", it's a 1 sec clip with nothing in the beginning and a red dot in the end. I want this dot to trigger and show only when mouse goes over this specific link, otherwise it must be invisible.
I know this is pretty basic stuff and I have done this before few years back but I have forgotten how to do it and need help now.
Any help would be very much appreciated :-)
KimI still need help, this problem is little more complicated;
I can manage making the red dot visible and invisible by triggering roll over and roll out on a button.
The problem is, I have a navbar which is line of flags made to a movie clip, with 5 invisible buttons. These buttons are configured to do three different actions; get URL, trigger a light effect and a movement effect.
Now I need this invisible button to trigger my red dot also so that when mouse is over a certain flag a red dot appears on a map on the correct location.
I have the red dot on a new layer. It has instance name "redDot" and on the very first frame of this red button layer, I have action script that says: redDot._visible = false;
This works as it should and the dot is invisible when the movie has loaded.
I need to make this invisible button to trigger the visibility of my red dot, and I have tried to add the code:
on (rollOver) {
redDot._visible = true;
on (rollOut) {
redDot._visible = false;
to this invisible button, but it dosent work, furthermore it affects the other functions of the button/movie clip, which were working fine before.
Here is the code attached to this invisible button so far:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2);
on (rollOut) {
gotoAndPlay("sec");
I have the URL:s on an external text file.
So my question is; where do I add the action script to make it visible when moving the mouse over this invisible button? To my understanding, it should go in the same place as the other code that is working, but I'm doing something wrong...
I tried to do this:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2)
redDot._visible = true;
on (rollOut) {
gotoAndPlay("sec")
redDot._visible = false;
But it is wrong, I also tried like this:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2);
on (rollOut) {
gotoAndPlay("sec");
on (rollOver) {
redDot._visible = true;
on (rollOut) {
redDot._visible = false;
But it makes the other functions that worked to stop working.
I also tried to give the invisible button an instance name and do it like this:
invisible.on (rollOver) {
redDot._visible = true;
invisible.on (rollOut) {
redDot._visible = false;
And put them in the actions layer of button movie clip but nothing works.
Flash is really giving me a headache now...
To conclude, I made a simple test button, put it on the scene somewhere and and attached the rollOver and rollOut codes, targeting the "redDot" and it works fine, the button didn't need a instance name to work. I don't understand why I can't make it to work with the invisible button where it should be.
I hope this clarifies the point and I can get some help with this and sorry for bothering again with this problem.
Oh and I use old Flash MX 2004.
Thanks
Kim -
Madwifi-ng preup/predown script question [solved]
Hi,
I recently installed Arch 0.7.1 on my laptop.
So far I am very impressed with the speed and the simplicity :-)
I just have one small problem: madwifi-ng
Currently, I have to manually create the ath0 interface with wlanconfig, which is annoying. On the Gentoo forum I have found a partial script with preup/predown functions (the thread is located here)
preup() {
if [ "${IFACE}" == "ath0" ]; then
/sbin/wlanconfig ath0 create wlandev wifi0 wlanmode sta > /dev/null
return $?
fi
if mii-tool ${IFACE} 2> /dev/null | grep -q 'no link'; then
ewarn "No link on ${IFACE}, aborting configuration"
return 1
fi
return 0
predown() {
if [ "${IFACE}" == "ath0" ]; then
killall wpa_supplicant
/sbin/wlanconfig ath0 destroy
return $?
fi
return 0
I am using a Netgear WG511T pcmcia card.
I would really appreciate any suggestions on where to put this code, and how to modify it for use with Arch Linux, or if I should use something else alltogether.
Thanks in advance!Another interesting problem: I recently upgraded to the latest madwifi-ng code with svn update and also started using wpa_supplicant 0.5.0 (upgraded from 0.4.7)
The netcfg script stopped working and after a little tinkering I discovered that the following section from start_profile() in the netcfg script was killing wpa_supplicant before it could connect:
while ! wpa_cli status | grep "wpa_state=COMPLETED" >/dev/null 2>&1; do
if [ $i -gt 10 ]; then
wpa_cli terminate >/dev/null 2>&1
ifconfig $WIFI_INTERFACE down
stat_fail && return
fi
sleep 2
let i++
done
fi
I have now commented out the loop and running the command "netcfg netgear" no longer halts there and so far everything seems to be fine again. I am guessing more than a 20 second timeout is needed, so I'll try having the iterator increment to 30 or something and see if that solves it.
[EDIT]
Now using [ $i -gt 30 ]; and it works. On second thought, since everything now really just works and my main question was essentially answered, I am adding [solved] to the title.
Thanks again!
[/EDIT] -
This is probably a very basic question, but going through all
my old Flash work didn't help me remember...
I have my animation starting on the main stage with an image
fading in. when that is done playing, at the end i want it to go to
a movie clip on the stage and play it from frame 2. what is the
action script for this?Doesn't seem to be working... your_mc is the instance name of
the mc, correct? i placed this script in a frame - it's above where
my mc first appears and the initial animation on the stage ends. is
that correct?
stop();
tellTarget(mc_square-grid){
gotoAndPlay(2);
When I test the movie, the initial animation plays then
stops, but the MC does not start playing. and the following error
message appears:
Target not found: Target="NaN" Base="_level0"
quote:
Originally posted by:
ActionScripter1
tellTarget(your_mc){
gotoAndPlay(2);
Maybe you are looking for
-
Civ 4 under OS X (not boot camp)?
Has anyone managaed to install Civ 4 under OS X. I really loved the Civ series and want to get Civ 4. If anyone has installed it, how does it play at the differnet graphical settings? I have 2 GB of RAM so please list your RAM as a reference. I don't
-
How to design HTML Table in ADF
I am new to ADF Tech, I would like to know, how to design the HTML Table Rows and Columns in ADF Ex: <TABLE width="100%" border="1"> <TR> <TD>GUID</TD> <TD>123</TD> <TD>Name</TD> <TD>Mark Antony</TD> <TD>Version</TD> <TD
-
Just installed Solaris 8 on my Intel PC and need to know the complete setup procedure for setting it up for Dialing out to my ISP. I currently use MSN as my ISP. Has anyone here done the setup for MSN from scratch? I need a complete step-by-step proc
-
Photoshop CS3 crashes with a Network Printer
Regarding issue kb402704: Our company only uses network printers. It is completely ridiculous that we have to set the Adobe printer as our default printer in order for Photoshop to run without crashing. We pay all this money for CS3 and your only fix
-
Error: occi.h: No such file or directory
I'm working on an university project where Oracle is imposed, so i need to configure it on my machine. I downloaded the instant client for AMD64 (64bit version) here, for it appears that's the place where occi.h would be. I also downloaded OCCI and t