No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
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: When you are considering epsilon closeness as a condition for equality, how would you then compare for **inequality?** should I code like: bool isNotEqual(float A, float B){ if(A != B) return true; else return false; } or should I code like: bool isEqual( float v1, float v2 ) { if( … | |
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: [QUOTE=;][/QUOTE] check out how this is done at the following address [url]http://sourceforge.net/projects/matrixcalc/files/matrix.cpp/download[/url] | |
Re: If you want to read a particular line perhaps this could help. Suppose you want to read line no.131 then use the following code: [code] ifstream fin("file.dat"); int lineno = 131; int count = 0; string str; while(count < 130 && getline(fin, str)) count++; getline(fin, str); [/code] |
The End.