Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached

6 Posted Topics

Member Avatar for santakdalai90

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 …

Member Avatar for santakdalai90
0
455
Member Avatar for santakdalai90

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 …

Member Avatar for santakdalai90
0
3K
Member Avatar for ravenous

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( …

Member Avatar for santakdalai90
0
308
Member Avatar for santakdalai90

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 …

Member Avatar for santakdalai90
0
138
Member Avatar for bjwittrock

[QUOTE=;][/QUOTE] check out how this is done at the following address [url]http://sourceforge.net/projects/matrixcalc/files/matrix.cpp/download[/url]

Member Avatar for mike_2000_17
0
211
Member Avatar for im4tion

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]

Member Avatar for santakdalai90
1
337

The End.