Instead of putting each individual line in FONT tags, just put the whole thing in one big CODE tag. That'll format it nicely for you.
Depends on your shell. It'll work in BASH.
[FONT=Times New Roman][FONT=Times New Roman]vmtoolsd --cmd 'info-get guestinfo.ovfEnv' > vmt
That's a combination useless use of backticks and useless use of cat. When the data's large enough, you might find it silently truncating data and the like. It'll also split on spaces, not just lines.
Instead of that I reccomend this method:
which won't ever truncate the data and won't run into the size limit of a shell variable.
Hi
I have something like
cat $HOME/all_dirs | while read ln_old_dirs
do
if
then
echo "$ln_all_old_dirs"
fi
done
As you know that the variable ln_all_old_dirs is not accessable from outside the... (2 Replies)
Hi,
Is there any way I can grep an array against another array?
Basically here's what I need to do.
There will be an array containing some fixed texts and I have to check whether some files contain these lines. Reading the same files over and over again for each different pattern doesnt seem... (1 Reply)
Hi suppose in python I have a list(or array, or tuple, not sure the difference)
How do I loop inside the size of array.
The pseudo code is:
a=
for i = 1 to dim(a)
print a
end
How to find the dimension in python?
Also, anyone has a handbook to suggest so I can borrow from library (1 Reply)
I have an array and two variables as below,
I need to check if $datevar is present in $filename.
If so, i need to replace $filename with the values in the array.
I need the output inside an ARRAY
How can this be done.
Any help will be appreciated. Thanks in advance. (2 Replies)
Hi All,
I am trying to run a do while for an array. And in the do while, I'm trying to get a user response. Depending on the the answer, I go ahead and do something or I move on to next element in the array.
So far I can read the array, but I can't get the if statement to work. Any suggestions... (5 Replies)
attempting the hangman program. This was an optional assignment from the professor. I have completed the logical coding, debugging now.
##I have an array $wordString that initializes to a string of dashes
##reflecting the number of letters in $theWord
##every time the user enters a (valid)... (5 Replies)
Hi
I'm trying to loop through an array that contains other arrays and these arrays consist of strings with spaces. The problem is that I can't seem to preserve the spacing in the string. The string with spaces are either divided into multiple items if I change IFS to \n or all the elements of... (4 Replies)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
I will start with an example of what I'm trying to do and then describe how I am approaching the issue.
File
PS028,005
Lexeme HRS # M #
PhraseType 1(1:1) 7(7)
PhraseLab 501 503
ClauseType ZYq0
PS028,005
Lexeme W # L> # BNH # M #... (17 Replies)
Discussion started by: jvoot
17 Replies
LEARN ABOUT SUNOS
task
Task(3PERL) Perl Library Functions Task(3PERL)NAME
Task - Perl interface to Tasks
SYNOPSIS
use Sun::Solaris::Task qw(:ALL);
my $taskid = gettaskid();
DESCRIPTION
This module provides wrappers for the gettaskid(2) and settaskid(2) system calls.
Constants
TASK_NORMAL, TASK_FINAL.
Functions
settaskid($project, $flags)
The $project parameter must be a valid project ID and the $flags parameter must be TASK_NORMAL or TASK_FINAL. The parameters are passed
through directly to the underlying settaskid() system call. The new task ID is returned if the call succeeds. On failure -1 is
returned.
gettaskid()
This function returns the numeric task ID of the calling process, or undef if the underlying gettaskid() system call is unsuccessful.
Class methods
None.
Object methods
None.
Exports
By default nothing is exported from this module. The following tags can be used to selectively import constants and functions defined in
this module:
:SYSCALLS settaskid() and gettaskid()
:CONSTANTS TASK_NORMAL and TASK_FINAL
:ALL :SYSCALLS and :CONSTANTS
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpl5u |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO gettaskid(2), settaskid(2), attributes(5)SunOS 5.10 1 Dec 2002 Task(3PERL)