07-26-2007
There are tasks that are very hard or impossible even with a powerful shell like ksh. Example: unix keeps time internally in seconds since the epoch. What date and time would 1164876000 correspond to? That would be a complex shell script if you had only a Posix shell and Posix utilities to work with. Perl solution:
perl -e 'print scalar localtime(shift),"\n"' 1164876000
Perl can manipulate text quite adroitly but so can Posix shells. I switch to perl when my requirements exceed the power of a shell. Often I use perl to write one-liners as above to assist the shell. While I doubt that you could write a device driver in perl, perl approaches c in power.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
to help me with my studying of unix/linux outside of work I was thinking of installing Linux at home aswell as using Windows XP.
Im pretty new to Linux and Unix, could someone tell me the possible benifits or even negatives of running Linux at home as an opperating system as opposed to... (2 Replies)
Discussion started by: Loaded Gun
2 Replies
2. UNIX for Dummies Questions & Answers
What are the advantages of putting users into groups? I understand that in a corporate environment, you should create a group for each department. ie: putting finance employees into a finance group.
But are there any system advantages for doing that? How would it make it easier on the system... (3 Replies)
Discussion started by: kurtmc
3 Replies
3. What is on Your Mind?
Does anyone know what are the Advantages and Disadvanted of being able to modify UNIX? I'm am stuck on this .. Anyone help would be greatly appericated.
:) (1 Reply)
Discussion started by: MTVALDEZ
1 Replies
4. UNIX for Dummies Questions & Answers
hi,
can any body tell me the advantages of having cpio command over tar command (7 Replies)
Discussion started by: prasannak
7 Replies
5. Shell Programming and Scripting
Hi
Anyone can compare and contrast differences, Advantages & Disadvantages between BASH vs PERL
just a need few points on both
Thanks (4 Replies)
Discussion started by: karthikn7974
4 Replies
6. UNIX for Dummies Questions & Answers
What are some advantage's of Unix (3 Replies)
Discussion started by: alvin2132
3 Replies
7. Programming
(I have long gap to communicate with C++ and do not recall if I have used 'try-catch' at all; so, looking for advice...)
I am trying to understand what the benefits of using that C++ error handling style compare to regular C-style 'if-then'?
Still in the try{} block need to do some 'if()' to... (4 Replies)
Discussion started by: alex_5161
4 Replies
8. Solaris
Hi Guys,
Have you tried running Solaris 10 on Failsafe mode? What are their advantages and disadvantages?
What would you recommend for a roll-back plan in case something happens after failsafe mode?
I need to run on failsafe mode to be able to execute fsck.
Appreciate your kind... (1 Reply)
Discussion started by: bocha
1 Replies
LEARN ABOUT SUNOS
suspend
suspend(1) User Commands suspend(1)
NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)
SunOS 5.10 15 Apr 1994 suspend(1)