Vizury Interview Question for Software Engineer in Tests

Country: India
Interview Type: Phone Interview

Comment hidden because of low score. Click to expand.
of 0 vote

Assuming the "ps" on your system required to show all processes of all users is "PSBLAH" and that the kth column is the one that shows memory usage.
(Note k is NOT used as a variable below. Rather it represents a literal number )

Then answer without handling errors is something like this (that is, question is vague, but whatever it is, answer can look like below):

for ip in $(cat $filename); do
     echo -n "Memory usage of $process on machine with ip $ip is "
     usage=$(ssh $ip "PSBLAH | grep $process | awk '{print $k}' 2>/dev/null )
     echo "$usage"

Ping me in private if you are looking for opportunities in the Toronto/Waterloo, Ontario area.

- RecruitingForSandvineCanada June 07, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
of 1 vote

But if we will connect through ssh it will ask for credential right.
Can't we use telnet for this question ?

Thanks for considering me but I am based on India.

- zammer June 10, 2015 | Flag

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More