8 More Discussions You Might Find Interesting
1. What is on Your Mind?
Thank You Patreon Sponsors!
We are using your generous sponsorship dollars for software and media licensing. Your patronage is greatly appreciated!
Currently, we are working on new tech videos on the YouTube YT channel, which is the new official media channel for unix.com.
... (0 Replies)
Discussion started by: Neo
2. Shell Programming and Scripting
I have a file and when I match the word "initiators" in the first column I need to be able to print the rest of the columns in that row. This is fine for the most part but on occasion the "initiators" line gets wrapped to the next line. Here is a sample of the file.
caw-enabled ... (3 Replies)
Discussion started by: kieranfoley
3. Shell Programming and Scripting
Here is what I have working thanks to all of you. Now I need to take it one step further. The $result value needs to be in the $0000.00 format instead of what it is now, 000000. Yes, it is always 6 characters, I thought this would help but so far it has baffled me.
My thought... (3 Replies)
Discussion started by: CougarMutt
4. Shell Programming and Scripting
I'm writing a wrapper script (in bash) that wraps another (bash) script. When calling the wrapped script, I need to pass all the received arguments/options to it. Is there a built in variable that holds all the options? I wrote a little while loop (see below) which works. But I wanted to know if... (1 Reply)
Discussion started by: Dilbert
5. Shell Programming and Scripting
I am about 3 weeks new to CGI/ Perl scripting and so far some concepts I can wrap my head around perfectly but others not so much.
I was wondering if I could get some help in making a script that will pull from a text file and put back into a form. I can make a script that takes input... (15 Replies)
Discussion started by: sennex
6. UNIX for Advanced & Expert Users
I need to convert a file i.e
cat wrappedfile 1000:1001:1002:
currently I am using a while loop, paste and mv command to achieve desired outcome.
cat list | while read line ;do echo $line > /tmp/$line;paste /tmp/$line wrappedfile >... (7 Replies)
Discussion started by: jouuu
7. UNIX for Dummies Questions & Answers
I have a file abc:
And I am successfully e-mailing the file, with this:
mail -s "contents of abc" firstname.lastname@example.org <<EOF
But the e-mail shows up looking like this:
subject: contents of abc
line 1 line 2 line 3 line 4
The carriage returns... (5 Replies)
Discussion started by: tumblez
8. Shell Programming and Scripting
Can someone tell me how i can merge the lines that are wrapped.
My file has content somethig like this
Line1 -> xxxx bbbb ccc dddd bababab11
Line2 -> 2222 nnn cccc
Line 3-> yyyyy zzzz uuzuz ioouo oououou11
Line 4 -> 3333 pppp dddd
Line 5-> zzzz kjkj uuzuz ioouo oououou11
Line 6->... (1 Reply)
Discussion started by: braindrain
secure_sid_scripts(5) File Formats Manual secure_sid_scripts(5)
secure_sid_scripts - controls whether setuid and setgid bits on scripts are honored
This tunable controls whether and bits on executable scripts have any effect. Honoring on scripts make a system vulnerable to attack by
The default value for this variable is 1, indicating that bits are to be ignored by the execve(2) system call for higher security. The
tunable can be set to 0 for a compatibility with older releases at the expense of security. Hewlett-Packard strongly recommends that you
not change the value of this tunable unless there is an urgent need to do so.
When a script with bits is executed, the kernel generates the following error message to both the terminal controlling and the system log.
(To view the error message, use dmesg(1M) or inspect
Who is Expected to Change This Tunable?
Restrictions on Changing
Changes to this tunable take effect for new scripts started after the change.
When Should the Value of This Tunable Be Changed?
This tunable controls operational modes rather than data structure sizes and limits. The appropriate setting for a system depends on
whether you consider security or compatibility to be most important.
A value of is compatible with previous releases of HP-UX, but it is also less secure.
A value of provides security against race condition attacks exploiting scripts.
What Are the Side Effects of Changing the Value
This tunable controls only executable scripts (not programs) with bit set. HP-UX does not ship with any such scripts. If the customer
wishes to use scripts, third party applications such as or can be used. Alternatively, the shell script can be wrapped in a simple C pro-
gram that runs the shell script with appropriate permissions:
What Other Tunable Values Should Be Changed at the Same Time?
None. All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future
releases of HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
was developed by HP.
chmod(1), execve(2), kctune(1M).
Tunable Kernel Parameters secure_sid_scripts(5)