Hi all
today i gone through worst interview of my life that for hour questions were so basic but i never though about them now i am figuring out answers my self but i would appreciate if you ppl help me ... i am listing some of the questions i remember ..
1 )
now which shell will execute this echo statement ?
2 ) how to call one shell script from other script without creating new process ? interviewer told me i want to use $aaa from a.sh script to b.sh without exporting it ?
ANSWER
3 ) how to know current shell you are working in ?
echo $SHELL ...but he was looking for something else ..i dont know what exactly.
sorry for not searching the forum before posting questions here is the thread : https://www.unix.com/unix-dummies-que...ent-shell.html
4 ) how to display all ENV varaibles without using env command ? from shell and then from perl ( perl i will figure out ..)
i knew this one i was not sure ..
5 ) in perl say i have statement
will it assign STDOUT / STDERR / BOTH ? if not BOTH then how to get other one ?
ANSWER : it read both
6 ) in perl what can be maximum length of variable ? like my $a = "aaa...." how far can i go ?
@ corona688 - you are right ... looks like there is no limit
above script worked ...without any probs ..3 million is more than enough
7 ) in perl how can i execute a module ? and how can i use variable used in modul a in module b ?
ANSWER :
suppose i have module "A" and variable "aaa" inside it i want to access "$aaa" in B module then i would use something like
$bbb = $A::aaa ;
read it on perlmod man page ....
i can remember this much only right now ... if i find out i will put answers in this thread only ...
@ MOD : this is not homework. if this is against rules of forum you can delete this thread.
Last edited by zedex; 02-02-2009 at 02:31 PM..
Reason: answer for q 5
I'm trying to find out what all is involved with setting up SFTP?
1) Do Solaris machines come with a SFTP server and client already installed.
2) If so would I have to install SFTP clients on windows, if I want to transfer files to a Solaris box?
3) If SFTP doesn't come prepackaged would I... (1 Reply)
Hi-
Newbie here with some basic questions:
1) I can't get alias to work. I tried alias ll='ls -al', but it doesn't work. When just typing 'alias', the new definition doesn't appear. I'm in a bash shell -- is that the problem. I tried switching to csh, but that didn't seem to help. This... (5 Replies)
Hi there.
I've got 12 years experience writing C++ on Windows, and 3 years C# on Windows. Now my boss wants me to write a C++ app to run on Unix as a multithreaded 'service' (i.e. a program that runs with no user intervention).
Some quick questions for The Experts:
* Whats the best C++... (3 Replies)
Hey guys,
I've seen this posted a few times when i searched but I kinda want to know the cleanest way of doing it.
On Solaris 8 and Solaris 9
What is the best way to disable telnet ssh1 and remote root login premanently?
I've seen posts that say edit /etc/services edit this edit that... (3 Replies)
I have multiple questions
How to list or find only Nov month's files?
How can I get state of process like running, stop, or sleep etc?
How can I check dependences of processes?
plz ans any if u can
thx regards,
Mazhar Hussain (3 Replies)
what is a assembler
what isa interpreter
what is a compiler
what is a socket
what is a port
what is meant by listening to a port how we do it
how to know version and standard of unix one is using when one is on public access unix account
how to see a jobid in... (1 Reply)