jobs

Why do I get the information of “suspended (tty input)” when I run my script in the background

浪尽此生 提交于 2019-12-04 11:26:42
I've written a tcsh script to clear garbage data in a cluster, the code is : set hosts = $1 set clear_path = $2 foreach i ($hosts) rsh $i rm -rvf $clear_path end When I run this script in the background like this : disk_clean.sh hosts_all /u0/data/tmp > log & The job will get stuck and show the information like this: [1] + Suspended (tty input) If I run this in foreground, it can finish normally. Why does this happen? How can I run this script in the background and redirect the output into a log file? 来源: https://stackoverflow.com/questions/42361200/why-do-i-get-the-information-of-suspended

SQL Agent Job - “Run As” drop down list is empty

徘徊边缘 提交于 2019-12-04 10:09:39
问题 Why is the "Run As" drop down list is always empty when I try to set up a SQL Agent Job? I am trying to set up some SQL Agent Jobs to run using a proxy account. I am a member of the SQLAgentUserRole, SQLAgentReaderRole, and SQLAgentOperatorRole. When I try to add a step to to the job, I select SQL Integration Services Package and the Run As drop down list is empty. Anyone who is a sysadmin can view the proxy. Shouldn't I be able to use the proxy as a member of SQLAgentUserRole,

How to get the queued job from job ID in Laravel?

耗尽温柔 提交于 2019-12-04 10:04:52
Is there any way to get the queued job from the job ID in Laravel? While adding the job to the queue, I store the job ID. Later at some point of time (there is a delay to process the job in the queue), I want to remove the job from the queue. If I can get the job on the queue using the job ID, I can use delete() method to remove it. I use this code for laravel 5.5 : use Illuminate\Contracts\Bus\Dispatcher; $job = ( new JOB_CLASS() )->onQueue('QUEUE_NAME')->delay('DELAY'); $id = app(Dispatcher::class)->dispatch($job); It is a queue so you can not select it, but if you are logging the data also

Makefile - Pass jobs param to sub makefiles

会有一股神秘感。 提交于 2019-12-04 06:03:35
I have a makefile which calls multiple other makefiles. I'd like to pass the -j param along to the other makefile calls. Something like (make -j8): all: make -f libpng_linux.mk -j$(J) Where $(J) is the value 8 from -j8. I absolutely swear I've done this before but I cannot locate my example. $(MAKEFLAGS) seems to contain --jobserver-fds=3,4 -j regardless of what -j2 or -j8 Edit: Possible Solution: Will post this as an answer soon. It appears one solution to not worry about it. Include -j8 when you call the main makefile. The sub calls to make should look like this: all: +make -f libpng_linux

Retrieve result from 'task_id' in Celery from unknown task

陌路散爱 提交于 2019-12-04 04:33:13
How do I pull the result of a task if I do not know previously which task was performed? Here's the setup: Given the following source('tasks.py'): from celery import Celery app = Celery('tasks', backend="db+mysql://u:p@localhost/db", broker = 'amqp://guest:guest@localhost:5672//') @app.task def add(x,y): return x + y @app.task def mul(x,y): return x * y with RabbitMQ 3.3.2 running locally: marcs-mbp:sbin marcstreeter$ ./rabbitmq-server RabbitMQ 3.3.2. Copyright (C) 2007-2014 GoPivotal, Inc. ## ## Licensed under the MPL. See http://www.rabbitmq.com/ ## ## ########## Logs: /usr/local/var/log

postgresql数据库备份还原

北慕城南 提交于 2019-12-04 02:23:09
一、备份 1.命令行下备份为纯文本格式 切换为postgres用户(linux 命令) su - postgres 备份到backupfile.bak pg_dump dbname > backupfile.bak windows下使用-U参数切换用户 pg_dump -h localhost -U postgres -p 5555 dbname > backupfile.bak 2.pgAdmin 4客户端备份为 归档文件格式 二、还原 纯文本格式的脚本 使用psql 1.cd到postgresql安装目录,如:d:\program files\postgresql\10\bin> 2.执行 psql -U postgres -d dbname -p 5555 < backupfile.bak 另:使用CMD,不要使用powershell 不加-U(大写),windows下默认是administrator用户,-p是端口 归档文件格式(.sql文件,.backup文件) 使用pg_restore 参数:-d 数据库 -j 线程数(可以多线程提高速度) -v 详细模式(显示还原过程)-U(用户名,windows下需要加这项) pg_restore --dbname=mydb --jobs=4 --verbose mydb.backup 简写:pg_restore -d mydb

How to schedule Pentaho Kettle transformations?

旧街凉风 提交于 2019-12-03 21:42:08
I've set up four transformations in Kettle. Now, I would like to schedule them so that they will run daily at a certain time and one after the another. For example, tranformation1 -> transformation2 -> transformation3 -> transformation4 should run daily at 8.00 am. How can I do that? You can execute transformation from the command line using the tool Pan : Pan.bat /file:transform.ktr /param:name=value The syntax might be different depending on your system - check out the link above for more information. When you have a batch file executing your transformation you can just schedule it to run

Running parallel jobs in talend

余生长醉 提交于 2019-12-03 21:11:29
问题 I have a situation where i need to run five different child jobs in talend in parallel. Problem is that, in my select query i would be getting five different ID's and then for each particular id , i need to run five different jobs. Problem with tparrallelize component is that , it does not allow me to pass context variables to each sub job, i.e id in this particular case. select id from table limit 5; ----> five different instance of same job with different id as parameter Any help would be

Scheduling A Job on AWS EC2

放肆的年华 提交于 2019-12-03 18:42:23
问题 I have a website running on AWS EC2. I need to create a nightly job that generates a sitemap file and uploads the files to the various browsers. I'm looking for a utility on AWS that allows this functionality. I've considered the following: 1) Generate a request to the web server that triggers it to do this task I don't like this approach because it ties up a server thread and uses cpu cycles on the host 2) Create a cron job on the machine the web server is running on to execute this task

how to send a custom object as Job Parameter in Spring Batch?

限于喜欢 提交于 2019-12-03 15:49:57
I have a requirement of sending a Custom Object to the Spring Batch Job , where this Object is used continuously used by the Item Processor for the business requirement. How can we send custom object from outside to the Job Context. This Object changes from Job to Job and generated at runtime depending on Business case. How can send this as a Job Parameter? or is there any way that i can set this Object to the respective Job ? can overriding Spring JobParameter help me in any way? or are there any Big issues as an outcome of this Overriding behaviour ? Thrax This question has been asked on the