Job Scheduling


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Job Scheduling
# 1  
Old 09-24-2013
Linux Job Scheduling

Hi All,

I am new to unix and i have a task in front of me.
The code part is "android update sdk" . I need to crontab this process.
Hence i have written a script that runs the above command and sends a mail once the update is done. The problem with the automation is the installer asks for a license agreement in between. How can i accept it in the script??? Hope will get a solution for this ..

Thanks
# 2  
Old 09-24-2013
By using expect or perhaps a here-document in your script...
# 3  
Old 09-25-2013
vbe,

I tried Expect and send commands,
But its not workingSmilie.
Any other solutions????Smilie


Thanks.
# 4  
Old 09-25-2013
What exactly does it ask you do type? Perhaps you could feed it through standard input:
Code:
printf "yes\n" | android update sdk

Or you might just have to do it manually. The SDK can't be updated that often, right? I mean how can you be expected to develop anything if the floor beneath your feet keeps moving?
# 5  
Old 09-26-2013
Scott,

I agree with your statement, but that is what is the task in front of me now.
The piece of code that you have mentioned works fine.But the task is still incomplete because the installer asks for the license agreement twice. The code you have mentioned feeds "YES" once.The second time the installer waits for the input some 15 secs and cancel off the downloading process related to the second License. Can you please look into this??? I tried to alter your code but i failed in finding a solution.

Thanks.
# 6  
Old 09-30-2013
All,

I tried the expect, spawn and send commands for the above problem.
I am facing this error when i execute the .exp file.
Code:
invalid command name "y/n"
    while executing
"y/n"
    invoked from within
"expect "[y/n]:" { send "Y\r" }"
    (file "./enter.exp" line 5)

Please do help me in solving this.

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Scheduling cron job

Hi Everybody, I want to run a script at every 5 seconds. I know how to run it every 5 minutes, is there any possibility to run a script at 5 seconds interval. Regards, Mastan (3 Replies)
Discussion started by: mastansaheb
3 Replies

2. Shell Programming and Scripting

Job scheduling on demand

I am writing a script to run the jobs on demand, like when i am done with some online updates i want to run the sheduler script to schedule the job 1 by 1. It executes the following way sched.ksh <data file> The data file will have the jobs to be executed in the order to be executed and... (1 Reply)
Discussion started by: nw2unx123
1 Replies

3. Shell Programming and Scripting

Cron Job Scheduling

Hi All, I have a script which is scheduled in the Cron. It runs every 10th and 40th min of an hour.The job has to run every 30min. But, I do not want to have the 00:10 MST run every day.Is it possible to exclude that run from the schedule?Or any other way through which i can run my job every... (4 Replies)
Discussion started by: sparks
4 Replies

4. UNIX and Linux Applications

Job Scheduling (Autosys)

Hello! I will be working with Autosys and I am looking for individuals that have knowledge of this UNIX application. Thank-you! (3 Replies)
Discussion started by: preshe79
3 Replies

5. UNIX for Advanced & Expert Users

Autosys job scheduling

Hi, I want to schedule a job through Autosys (in Linux server) to run on 1st day of every 3rd month(gap of 90 days). Please someone help me to achive my above requirement Example: Run the sample.sh on 01-Jan-2009, 01-Apr-2009, 01-Jul-2009, 01-Oct-2009. Thanks in advance (4 Replies)
Discussion started by: apsprabhu
4 Replies

6. Shell Programming and Scripting

Job Scheduling Issue

Hi Guys, I am new to Unix, Please tell me how to schedule a job to be executed on saturday,sunday and on friday night 8:00 PM onwards. and also how to change the password of oracle user every year through unix? Please help me to resolve this issue... Regards, Mahesh Raghunandanan (1 Reply)
Discussion started by: mraghunandanan
1 Replies

7. Shell Programming and Scripting

Job Scheduling

I am working on UNIX AIX system, with Oracle OS. We are not supposed to use any tools to schedule our unix shell scripts. Basically we have to make use of Oracle tables and Shell scripts to manage dependencies, restartability, scheduling, parallelizing,etc. If anyone has worked/ is working... (4 Replies)
Discussion started by: singhabhijit
4 Replies

8. UNIX and Linux Applications

Job Scheduling

I am working on UNIX AIX system, with Oracle OS. We are not supposed to use any tools to schedule our unix shell scripts. Basically we have to make use of Oracle tables and Shell scripts to manage dependencies, restartability, scheduling, parallelizing,etc. If anyone has worked/ is working... (1 Reply)
Discussion started by: singhabhijit
1 Replies

9. Shell Programming and Scripting

Job Scheduling

Hello, I want to know about job scheduling utilities available in unix. It should not be responsible just for starting the job like in case of cron but should also be able to handle the execution of jobs. Regards, Ritesh (1 Reply)
Discussion started by: turlapaty
1 Replies

10. UNIX for Dummies Questions & Answers

problem with scheduling a job

I scheduled 2 Oracle jobs to run on IBM AIX 4.3.3 at 06:50 and 06:58 on 02/02/03 with the below syntax: $ at 06:50 02/02/03 /orac/ora11/temp/sun_job1.sh Job oracle.1044175800.a will be run at Sun Feb 2 06:50:00 2003. $ at 06:58 02/02/03 /orac/ora11/temp/sun_job2.sh Job... (1 Reply)
Discussion started by: ted
1 Replies
Login or Register to Ask a Question