I don't know what the limit command is. Does it take any input? I.e. when you type limit, does it wait to get some input from you before proceeding, or does it just go?
I did not find out where(path) is limit command. I guess this is a built-in shell command so there is no path for it; it is just a input to a shell!
Anyway Happy Holidays!
Yes, you can find out where the executable exists in the current system enviornment but i think "limit" is not a executive file!
I had tried which but system could not find the path for it.
I think you may need to make that one system call instead of 2, i.e.
Code:
$return = system(qq(/bin/csh;limit));
I don't have access to a Unix box to test, but I believe if you do it as one system call you'll be right back where you started when the process spawned by the first call terminates, so it will be just as though the first call never happened. Try it as above.
I was reading and came across the answer to your problem and remembered that someone asked how to execute a built-in C shell command from within a Perl script. This works, I tested it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.