No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am trying to search for a shell script if it is running and then assigning the count to a variable. Let the script be ScriptXYZ.sh. I wrote: proc_count=$(/bin/ps -ef | grep ScriptXYZ.sh | grep -v grep | wc -l) The problem that I am facing is that even when … | |
I am trying to use following command to map a drive in persistent mode, and I don't want it to ask login credentials everytime I reboot the machine: net use P: \\server\folder Password123 /user:user123 /savecred /persistent:yes But I am getting folowing error: A command was used with conflicting switches. More … | |
Re:
At work we have a large number of unit tests that try to alert us that we have made changes that have broken our code. Many of these tests work by evaluating functions under known conditions and comparing the result with the known result. The known result is acquired by … | |
I am a beginner in java. I wrote the following code in netbeans. [ICODE] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sanfile; import java.io.*; /** * * @author santak */ public class SanFile { /** * @param … | |
Re:
I'm currently working on a implementing a matrix inversion method for a Matrix class in C++. One thing that isn't implemented is a check for when the pivot element is 0, meaning I will need to swap the rows (likely with the row just beneath it). Here is what I … | |
Re:
Hi. I was wondering if anybody could help me with a small problem. I would like to read a specific line from a txtfile and either output/delete it. Basically, I'm doing a program where a user inputs/view records and i'm stuck at searching it. My txtfile input from user has … |