jobs

Powershell: get output from Receive-Job

荒凉一梦 提交于 2019-11-27 17:22:10
问题 I have a collection of jobs that are running. When they complete I use receive-job and it writes the output to the screen. I'd like to take that output and log it to a file. I don't want to tee the output produced while the jobs are running because with multiple jobs running at once the logging would be interspersed. Get-Job | Receive-Job prints the output in a nice organized manner. I have tried all of the following and no output is written to the file or stored in a variable, it just goes

SSIS: Make Excel Visible In Script Task During SQL Server Agent Job Run

前提是你 提交于 2019-11-27 15:58:47
I built a package in SSIS that uses a script task to open an Excel file, format, and refresh some data in Excel. I would like to have Excel visible when the script task is running to see if Excel gets hung up which occurs all the time. Is this possible? I am converting a process that is calling Excel via a shell script to using SSIS to call Excel instead. I guess a second question is, is that a bad idea? billinkc Why this is a bad idea Generally speaking, administrators are tasked with maximizing the amount of "uptime" a server or service on the server has. The more software that gets

laravel queues - how sync driver works? Does it executes in a seperated process or the main execution thread?

半城伤御伤魂 提交于 2019-11-27 14:57:44
问题 I am sending push notifications from my server and want it to simply be executed in a background process. I've read the Laravel docs and I know about database driver and some other options as well. I've got it working with database driver on my local machine but one thing is bugging me that I've to start a background thread to listen for jobs which gets added to the queue using php artisan queue:listen --deamon . The point is, it is always consuming some of my resources and memory by running

How terminate child processes when parent process terminated in C#

坚强是说给别人听的谎言 提交于 2019-11-27 13:15:06
问题 Task: Auto kill all child processes if parent process terminate. Parent procees can be terminated not only in correct way, but also by killing in ProcessExplorer, for example. How can I do it? Similar question in С topic advice to use Job objects. How to use it in C# without exporting external DLL? I tried to use Job Objects. But this code doesn't work properly: var job = PInvoke.CreateJobObject(null, null); var jobli = new PInvoke.JOBOBJECT_BASIC_LIMIT_INFORMATION(); jobli.LimitFlags =

Jenkins restrict view of jobs per user

 ̄綄美尐妖づ 提交于 2019-11-27 10:55:01
Is there a way to restrict user to view only certain jobs in Jenkins. Jenkins allows the restriction of user ability per project via the "Project-based Matrix Authorization Strategy". The problem is that a user can not access anything without the 'Overall' 'Read' setting. This seems to allow them to view all the jobs. Is there another plugin that would allow the job restriction? Christian Think this is, what you are searching for: Allow access to specific projects for Users Short description without screenshots: Use Jenkins "Project-based Matrix Authorization Strategy" under "Manage Jenkins" =

PowerShell: Job Event Action with Form not executed

爱⌒轻易说出口 提交于 2019-11-27 09:38:32
If I run the following code, the Event Action is executed: $Job = Start-Job {'abc'} Register-ObjectEvent -InputObject $Job -EventName StateChanged ` -Action { Start-Sleep -Seconds 1 Write-Host '*Event-Action*' } The string ' Event-Action ' is displayed. If I use a Form and start the above code by clicking a button, the Event Action is not executed: [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") $Form1 = New-Object Windows.Forms.Form $Form1.Add_Shown({ $Form1.Activate() }) $Button1 = New-Object System.Windows.Forms.Button $Button1.Text = 'Test' $Form1.Controls.Add(

Are There Any Cron Jobs Alternative?

微笑、不失礼 提交于 2019-11-27 05:50:19
问题 Cron Jobs are closed on my server and server admin doesn't accept open it. Because , cron jobs slowing server etc. So, i need an alternative. I have to run a php file ( cron.php ) every 2 minutes. So, how can i do this ? 回答1: Even though the question was posted a while ago, I just had the same problem but found a solution (based on Kissaki's answer, thanks!) and thought I'd post it here for anyone still looking for a possible solution. Prerequisites: SSH access Python Code (python): from

How much does it cost to develop an iPhone application? [closed]

两盒软妹~` 提交于 2019-11-27 05:42:49
How much can a developer charge for an iPhone app like Twitterrific ? I want to know this because I need such an application with the same functionality for a new community website. I can do Ruby but have no experience with Objective-C. So it would be interesting for me if I should start reading books about iPhone programming or outsource the work to a iPhone programmer. chockenberry I'm one of the developers for Twitterrific and to be honest, I can't tell you how many hours have gone into the product. I can tell you everyone who upvoted the estimate of 160 hours for development and 40 hours

How do I Start a job of a function i just defined?

北城以北 提交于 2019-11-27 05:34:14
How do I Start a job of a function i just defined? function FOO { write-host "HEY" } Start-Job -ScriptBlock { FOO } | Receive-Job Receive-Job: The term 'FOO' is not recognized as the name of cmdlet, function ,script file or operable program. What do I do? Thanks. As @Shay points out, FOO needs to be defined for the job. Another way to do this is to use the -InitializationScript parameter to prepare the session. For your example: $functions = { function FOO { write-host "HEY" } } Start-Job -InitializationScript $functions -ScriptBlock {FOO}| Wait-Job| Receive-Job This can be useful if you want

Kubernetes Job Cleanup

泪湿孤枕 提交于 2019-11-27 02:32:44
问题 From what I understand the Job object is supposed to reap pods after a certain amount of time. But on my GKE cluster (Kubernetes 1.1.8) it seems that "kubectl get pods -a" can list pods from days ago. All were created using the Jobs API. I did notice that after delete the job with kubectl delete jobs The pods were deleted too. My main concern here is that I am going to run thousands and tens of thousands of pods on the cluster in batch jobs, and don't want to overload the internal backlog