Automator script for remote shutdown
hello everyone
i use a mac mini as a media server and i use ssh from the terminal to turn it off remotely,
i know you can run terminal commands in automator, but i cant get it to work
can someone show me how the script should look like, im not even sure if im using the right script (shell script or apple script) .
thanks in advance
I suggest using straight AppleScript: http://discussions.apple.com/forum.jspa?forumID=724
Similar Messages
-
Hi all,
Is there a way to have the ipad execute a series of tasks at startup? (like an automator-script)
Thank you!Hi all,
For all you who have been looking for a solution for the problem above, here it is :
http://www.kioskproapp.com/
The Kiosk Pro app allows you to run any html-scrip locally stored on the ipad!
Which is great! Because not only does it allow for an infinite amount of possibilities next to the video-looping, it also keeps on working with one click after a reboot!
The learning curve of usage is quite simple for the problem above, since they provide extensive information on the website and have great customer service.
I am very very happy I found this app, and I really hope this post saves a lot of people the headaches I've suffered in the course of finding the solution.
Enjoy!
Alex -
Automated script for setting authorization limit in GL
Hi,
I am trying to create an automated script in our General Ledger application to set authorization limit. I have looked into code of form GLXSTEAL.fmb. There I found that, GL_AUTHORIZATION_LIMITS_PKG is being used for setting authorizations limit.
Below is the code I am trying to run from PL/SQL developer using apps id:
declare
l_Rowid varchar2(30);
l_Set_Of_Books_Id apps.GL_AUTHORIZATION_LIMITS.SET_OF_BOOKS_ID%TYPE;
l_Employee_Id apps.GL_HR_EMPLOYEES_CURRENT_V.EMPLOYEE_ID%TYPE;
l_Authorization_Limit apps.GL_AUTHORIZATION_LIMITS.AUTHORIZATION_LIMIT%TYPE;
l_user_id number := FND_GLOBAL.USER_ID;
l_login number :=FND_GLOBAL.login_id;
p_Attribute1 apps.GL_AUTHORIZATION_LIMITS.Attribute1%TYPE;
p_Attribute2 apps.GL_AUTHORIZATION_LIMITS.Attribute2%TYPE;
p_Attribute3 apps.GL_AUTHORIZATION_LIMITS.Attribute3%TYPE;
p_Attribute4 apps.GL_AUTHORIZATION_LIMITS.Attribute4%TYPE;
p_Attribute5 apps.GL_AUTHORIZATION_LIMITS.Attribute5%TYPE;
p_Attribute6 apps.GL_AUTHORIZATION_LIMITS.Attribute6%TYPE;
p_Attribute7 apps.GL_AUTHORIZATION_LIMITS.Attribute7%TYPE;
p_Attribute8 apps.GL_AUTHORIZATION_LIMITS.Attribute8%TYPE;
p_Attribute9 apps.GL_AUTHORIZATION_LIMITS.Attribute9%TYPE;
p_Attribute10 apps.GL_AUTHORIZATION_LIMITS.Attribute10%TYPE;
p_Attribute11 apps.GL_AUTHORIZATION_LIMITS.Attribute11%TYPE;
p_Attribute12 apps.GL_AUTHORIZATION_LIMITS.Attribute12%TYPE;
p_Attribute13 apps.GL_AUTHORIZATION_LIMITS.Attribute13%TYPE;
p_Attribute14 apps.GL_AUTHORIZATION_LIMITS.Attribute14%TYPE;
p_Attribute15 apps.GL_AUTHORIZATION_LIMITS.Attribute15%TYPE;
p_Context apps.GL_AUTHORIZATION_LIMITS.context%TYPE;
l_date date :=sysdate;
begin
GL_AUTHORIZATION_LIMITS_PKG.Insert_Row(
p_Rowid => l_Rowid,
p_Set_Of_Books_Id => 1001,
p_Employee_Id => 9236,
p_Authorization_Limit => 100,
p_Last_Update_Date => l_date,
p_Last_Updated_By => l_user_id,
p_Creation_Date => l_date,
p_Created_By => l_user_id,
p_Last_Update_Login => l_login,
p_Attribute1 => p_Attribute1,
p_Attribute2 => p_Attribute2,
p_Attribute3 => p_Attribute3,
p_Attribute4 => p_Attribute4,
p_Attribute5 => p_Attribute5,
p_Attribute6 => p_Attribute6,
p_Attribute7 => p_Attribute7,
p_Attribute8 => p_Attribute8,
p_Attribute9 => p_Attribute9,
p_Attribute10 => p_Attribute10,
p_Attribute11 => p_Attribute11,
p_Attribute12 => p_Attribute12,
p_Attribute13 => p_Attribute13,
p_Attribute14 => p_Attribute14,
p_Attribute15 => p_Attribute15,
p_Context => p_Context );
commit;
end;
I am getting the error PLS-00306: wrong number or types of arguments in call to 'INSERT_ROW'.
Please help me with this.
ThanksI have found another way to achieve this. By inserting the data directly to GL_AUTHORIZATION_LIMITS table.
INSERT INTO gl.GL_AUTHORIZATION_LIMITS
(set_of_books_id,employee_id,authorization_limit,CREATION_DATE,CREATED_BY,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN)
VALUES (1001,p_person_id,1.00,SYSDATE,l_user_id,SYSDATE,l_user_id,l_login); -
Automation scripts for Instant client install\ add TNS entry
Guys,
I'm trying to develop an VB application,which uses data from an Oracle server residing in my neighbour's system.
My system doesn't have oracle client installed.
So, I've made use of Oracle Instant Client package-OCBC.
Now, I'm looking for an automation script that would do the following in order
1)Uzip the instant client into a directory. (say C:\ondemand\instantclient)
2)Add this directory into the PATH environment variable
3)Set up Service Names with tnsnames.ora ie. Create a TNSNAMES.ORA file to configure my Oracle instance connection.
4)Set the TNS_ADMIN environment variable to be the path to the tnsnames.ora
Can someone help me out with automated scripts?
Thanks,
BhagatDon't worry. I've solved it.
One of the files I was using stated: Always set the TNS_ADMIN environment variable or registry setting to the full path of the tnsnames.ora file.
I took that to mean including the "tnsnames.ora". It doesn't. It really does mean just the PATH part.
However, with this corrected, I got the pulldown populated. But with only the first part of the name, from the tnsnames.ora file. tnsnames.ora had mydb.<domain>.com. The pulldown only had mydb. Manually adding the .<domain>.com to it worked.
Now on to the next problem. <GRIN>
Cheers,
Eddie -
Hi,
Am having a requirement in my staging and prod env. to add, install,retract and remove wsp.
In my dev env i used to perform with Visual Studio ,so i didnt face any issues regarding retracting and removing the wsp from solution store.
But in my staging and prod since i dont hav VS installed, i would like to have a automated script[ NOT in POWERSHELL] using stsadm command line tool which adds the solution from a folder [say D:\DeployWSPs in staging and Prod] to the solution
store and installed onto a particular web application [ NOT "All WebApplications"].
and if the wsp already exists , i need to retract it & remove from solution store and add it and install again.
can someone pls help me with the automated script .also if the folder contains multiple WSPs how can i doa for each loop [ iterate through wach ".wsp" file and perform install/...task].
i know stsadm -o adddsolution, deletesolution,m retractsolution etc. But the issue is that customer asked me to do this ina automated fashion. manually entering all these commands is a cumbersome activity.
note: when i used powershell on 2 / 3 occasions, the wsp was retracted successfully,but failed to successfully remove from the
soln store.
so i thought i will depend upon on stsadm again like old version of SP since its supported.
DasI would recommend you to use Power Shell so that you can do the automation easily. You can use
power shell for earlier version of SharePoint as well.
Look why removing the solution is getting failed. May be you are trying to remove before the solution is retracted. Wait for retract and remove the solution. Refer to the following post for more information
http://www.codeproject.com/Articles/570011/PowerShellplus-plusWaitplusforplusRetractplus-fpl
http://consultingblogs.emc.com/mattlally/archive/2011/03/29/sharepoint-server-2010-multiple-solution-deployment-script.aspx
Cheers, -
Help with Automator Script for QuickTime Pro Movie Conversion from Vado
All my videos from my Creative Vado do not show up in iMovie 09 initially on import. By trial and error, I have discovered that the old version of QuickTime Pro 7 ($29.95) will convert them to .mov files that can be seen by iMovie 09 once the converted videos are imported back into iPhoto.
I am (very) new to mac things, and it looks like in theory I could use Automator to handle to conversion process, and perhaps even the re-import into iPhoto. Does anyone have any suggestions on how to go about this? Where would be a good site to post this as a project that I could pay some one to help me, provide an automator script/workflow?
Are any other solutions available? Buy Final Cut etc?
PS (Rant): One of the reasons I bought a MacBook Pro and iLife was to take advantage of what I thought was supposed to be Apple's superior multimedia handling. It seems ludicrous to me that with a MacBook Pro running the latest software (10.6.4), and using the latest versions of iLife, I'd have to buy an old version of QuickTime to convert my videos so that I could manipulate them in iMovie. Sigh.MPeg Stram clip will export files which are compatible with iMovie '09. It (iMovie )can import the following.
DV
AIC
Motion-JPEG
Photo-JPEG
MPEG-4 (Supported profiles)
H.264 (Supported profiles)
Apple Animation (Movie '09 only)
Apple Video (iMovie '09 only)
iMovie '08/'09 will not accept files containing extraneous data tracks such as:
'Tween
Text
Chapter
Closed Caption
Secondary audio such as AC3
etc.
iMovie '08/'09 Will not accept files that rely on proprietary/third-party components such as
DivX
WMV
XviD
etc. -
Spotlight automator script for dupes?
i suppose what i'm looking for is a script for spotlight that will identify duplicates on my hard drive with the exact same name and either delete them for me, or give me an easier way to delete them myself (besides weeding through each mp3 and deleting whatever comes up twice). i posted earlier about how when i migrated to my new computer last summer i inadvertantly made two copies of all my mp3s and i'd like to delete the duplicates.
any info would be greatly appreciated.
best,
dougHi there,
I would have a look at this it may help.
http://www.apple.com/downloads/macosx/systemdiskutilities/tidyup.html
Regards
Ric -
Automation Script for RPD in Linux !!
Hi,
I have a requirement to automate the RPD in linux to get the Repository Documentation in RPD with the UNIX script.
Actual manual process is Tools -> Utilities -> Select the Repository Documentation -> Execute -> Save,
I Need to do the same process with UNIX script,
Repository Path : /devobi/OBIEE11g/instances/instance1/bifoundation/OracleBIServerComponent/coreapplication_obis1/repository/OracleBIAnalyticsApps
Thanks in Advance,Hi Srini/Sunil,
Thanks for your reply,
Yes, We have a manual process in OBIEE11g as i mentioned the navigation. But, We need to do the automation process with UNIX Script in Linux environment.
So, Please help me on this assignment.
Thanks in Advance, -
Automated scripts for importing & sharing on Mobileme?
How would I go about writing a script to automate the following process :
1) (Trigger for script): I insert my SDHC card from my camcorder into my iMac card reader.
2) Launches iMovie and imports all clips as new event.
3) Creates a single project by including all of the events just imported.
4) Shares the project on Mobileme.
Currently I'm only managing to view, compile and share movies of the kids when I get (a very rare!) few hours at the weekend. If I could just pop the card into the reader on my way out to work in the morning it would transform my usability of iMovie and mobile me, as I could then view and share the 10-15mins of precious footage I took the night before.
Many thanks,
DThanks for info.
The work around I'm using at the moment is to plug in the card in the morning, then access my Mac remotely using Jaadu VNC via my iPhone to do the import and publishing.
Does the job, although a little more cumbersome and need reliable 3G / WIFI connection. -
Hey folks,
I'm working on a project where I'd like to have a hidden track that would only be accessed when the user entered a specific number with the DVD remote. For example, while a menu or track is playing, the user could enter the number 14 and press enter on the remote, then immediately be taken to the start of the new track. Is this possible?
Thanks for any help.
KevinHi Kevin
You can actually do this without scripting. Each button in a menu can be accessed via the numberpad on the remote. If you've got 5 buttons you can access the 5th button by pushing "5" on your key pad. So if you make an invisible button with no highlight states as your button 5 then the view won't know it's there but by pushing "5" you'll activate it.
In a track, you should be able to do the same thing using 'buttons-over-video', I haven't tested this so I'm not sure where the numberpad finds priority - but give it a go and let us know what happens.
Cheers
B -
How to create services start and stop automation script for diff servers
Hi All,
i want to create a bat file for automation purpose to start and stop services
i have some services in 1st server aand some in 2nd server and some in 3rd servers.
has you all know i have to follow sequences to start and stop services can any help me in creating .bat by linking 3 servers fo starting and stoping services.
Thanks in advance
Regards
SMHi,
this is the list of start oder for services in 11.1.2.1 from the Installation and Configuration Guide
1. Databases for repositories.
2. Any corporate user directories that you plan to configure for use with Shared Services.
3. Foundation Services Managed Server application server, which includes Shared Services,
and EPM Workspace.
4. Reporting and Analysis Framework — Agent Service (if required for your environment)
5. Reporting and Analysis Framework Application Server (if required for your environment)
6. Web server
The remaining services and processes can be started in any order:
1. Performance Management Architect Services
2. Performance Management Architect application server
3. Performance Management Architect Data Synchronizer application server
4. Essbase Server
5. Administration Services application server
284 Starting and Stopping EPM System Products
6. Integration Services Server
7. Essbase Studio Server
8. Provider Services application server
9. Financial Reporting Services
10. Financial Reporting application server
11. Web Analysis application server
12. Calculation Manager application server
13. Planning application server and the Hyperion RMI Registry
14. Financial Management service
15. Financial Management Web application server
16. Strategic Finance service
17. Performance Scorecard application server
18. Performance Scorecard Alerter application server
19. Profitability and Cost Management application server
to start services on different servers you can use the sc command in your batch file
for eg
sc \\10.121.201.21 start HypS9FrameworkAgent -
Automated scripts for portal transport
can portal transport operations be made programmatic?
is there any way to automate the process?
any help will be highly appreciated.
thanks
AMNHye Brijesh,
i'm a newbie in oracle olap, i already created a cube using Analytic Workspace Manager 10.2.0.3.0A and oracle 10gR2.
based on my requirement, i have to make sure that my cube data is match with the fact table for example when a row of data been deleted from the fact table then the cube also been updated.
i search for some command the i found the command
clear all from CUBE_APP_RECV_PRT_TOPVAR
then i maintained the cube then the data been updated.
how to make it the command clear all from CUBE_APP_RECV_PRT_TOPVAR for somehow run in scheduler or procedure something. if not then how to make it automated clear?
thanks in advanced,
rao -
Script for Automator to reorder text in file/folder name.
I have a folder full of pictures named by their first and last names. I need them to be renamed by listing them by last name first, first name last in order to get them alphabatized properly. Anybody out there have a nice Automator script for me to make this happen? I'm new.
Looking for it to look like this:
Brown, JohnTry this (should work for "John H Smith" --> "Smith John H" as well):
The Run Shell Script Action is:
for f in "$@"
do
basename=${f##*/}
path=${f%/*}
ext=${f##*.}
name=${basename%.*}
if [[ "$name" =~ \ ]]; then
fname=${name% *}
lname=${name##* }
name="$lname $fname"
mv "$f" "$path/$name.$ext"
fi
done
If you want a comma, then change: name="$lname $fname" to name="$lname, $fname"
As with all scripts, back-up the files before running -
Dear All,
I tried to do the script to remote shutdown my server below:
shutdown -m \\srv-ex01 -s -c "shutdown now" -t 0
srv-ex01: Access is denied.(5)
When I tried with username and password there is no access denied alert but the remote server still no shutdown.
shutdown -u administrator -p 123456 -m \\srv-ex01-s -c "shutdown now" -t 0
Please commend.
BR,
Khemarin
[email protected]Hi,
Is there any update?
Thanks.
Jeremy Wu
TechNet Community Support -
In my project I have to make certain calculation and then get the data plotted in the given report template. I am using automated script for this. My script is doing all the calculations and then it not selecting and drag-dropping the selected channels on the report template. Its saving the blank report template.
I am struggling to get the data for specific channels plotted by using the script. I need the selected channels to be plotted on this report template and then get it saved.
Any help will be deeply appreciated. Thanks
Solved!
Go to Solution.Hi LaxG,
Brad is absolute right. It is possible to create your whole layout via script.
If you have loaded the example report layout you can copy these lines to create a new line in your plot. This is the recommended object oriented way.
call Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Add(e2DShapeLine, "anyName")
Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.XChannel.Reference = "[1]/Zeit"
Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.YChannel.Reference = "[1]/Geschwindigkeit"
For performance reasons it's recommended to use the it like this.
dim oLine
set oLine = Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape
oLine.XChannel.Reference = "[1]/Zeit"
oLine.YChannel.Reference = "[1]/Geschwindigkeit"
Like Brad mentioned it is much easier, that you have a stored template of your report with all setings and customisations already done.
You open this layout file and have stored the names of your calculated channels. When you are doing this with a script they always have the same name and belong to the same group.
Now you can customize the references of the line items.
Kind Regards,
Philipp K.
AE | NI Germany
Maybe you are looking for
-
Lock User when enter password in wrong 3 times
Hi, I user oracle E-Business Suite 11i . I want to Lock User(Disable Account) when enter password in wrong 3 times. Thanx Rafeek Edited by: reemax on Apr 20, 2010 4:19 AM
-
OC4J Instance Configuration Assistant Failed during SSO install
Hi, I am building a Oracle Portal on Linux Server, at step of SSO installation i reached an error *"OC4J Instance Configuration Assistant Failed"* . In the log file i found that : Calling updateConfig to notify DCM of new deployments...done. Adding O
-
Hi, We have setup BizTalk AS2 and we are receiving the following error for the specific send port (on outbound): The adapter failed to transmit message going to send port "" with URL "". It will be retransmitted after the retry interval specified for
-
Replacing the a specific date in a query with blank
I have a report that customers run and within it they are wanting to replace a field when it equals a specific value - in this case when the sale date equals 31/12/9999 - we do not want to remove the row only replace that cell value with a blank - Do
-
I lost the icons for downloads and documents on doc bar
I lost the icons for the downloads and documents on doc bar. I read the other support answers and tried what they said still no luck. any answers?