12-10-2013
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in
this forum under
special homework rules.
Please review the
rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.
If you did post homework in the main forums, please review the
guidelines for posting homework and repost.
Thank You.
The UNIX and Linux Forums.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
I am new to unix.I have searched some forums but couldnt get my answer.
i have created 6 processes and i want to write the process ids into a file which can be read in another program i am writing.Can someone plz send me the syntax for doing so.
I have a doubt regarding pipes.If a... (3 Replies)
Discussion started by: soumya_v7
3 Replies
2. Shell Programming and Scripting
Hello,
Is there a way to perform nonblocking I/O reads from standard input in a bash script?
For example, in C, you can say:
int flags = fcntl(STDIN_FILENO, F_GETFL);
fcntl(STDIN_FILENO, F_SETFL, flags | O_NONBLOCK);
ch = fgetc(stdin);
the 'fgetc' function will not block on... (5 Replies)
Discussion started by: neked
5 Replies
3. Shell Programming and Scripting
Hello everyone!
I'm looking for a way to build a GUI for various bash scripts I've written.
Is there any "good" way to do it?
I've heard about python/gtk+,qt and other stuff, but I've absolutely no idea where I should look at.
Thanks a lot in advance!
Regards,
xenator
EDIT:
... (1 Reply)
Discussion started by: xenator
1 Replies
4. Shell Programming and Scripting
Hi,
I have to write a program to compute the checksums of files
./script.sh
I wrote the program using bash and it took me forever since I am a beginner but it works very well.
I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies
5. Shell Programming and Scripting
I am unable to use clear or cls command on bash shell. I have recently installed Cygwin and am using that for practicing unix commands.
I see that I can use Ctrl + L to clear the screen. I created an alias in my .bashrc to do the same as
alias cls='^L'
This is how i defined other aliases ... (4 Replies)
Discussion started by: erora
4 Replies
6. Shell Programming and Scripting
Hello,
the bulk of my work is run by scripts. An example is as such:
#!/bin/bash
awk '{print first line}' Input.in > Intermediate.ter
awk '{print second line}' Input.in > Intermediate_2.ter
command Intermediate.ter Intermediate_2.ter > Output.out
It works the way I want it to, but it's not... (1 Reply)
Discussion started by: Leo_Boon
1 Replies
7. Shell Programming and Scripting
i have a script that contains:
script.sh
#!/bin/bash
echo -e "\t\t\t0. Exit"
echo -e "\t\t\t1. Help"
echo -e "\t\t\t2. Notes"
echo -e "\t\t\t3. Classes"
echo "${newline}"
echo -n -e "\t Please enter option number : "
read Type
case $Type in
1)
clear
... (1 Reply)
Discussion started by: SkySmart
1 Replies
8. Shell Programming and Scripting
I am currently running the following two bash scripts, in order to start x, matchbox and midori on the raspberry pi hdmi, using a remote ssh session.
start-browser
#!/bin/bash
# import variables
source /var/rpi/scripts/config/variables/general
echo "starting browser"
DISPLAY=:0.0 sudo xinit... (2 Replies)
Discussion started by: aristosv
2 Replies
9. Shell Programming and Scripting
i have to run the following script through a pipe:
script.sh:
#!/bin/bash
echo "Hello World"
echo -e "The \033
here's how its currently being run:
bash -c "$(cat script.sh)"
This is an interactive script. the problem is, when i run it this way, if you go to another terminal and... (4 Replies)
Discussion started by: SkySmart
4 Replies
LEARN ABOUT OSF1
httppower
httppower(8) powerman httppower(8)
NAME
httppower - communicate with HTTP based power distribution units
SYNOPSIS
httppower [--url URL]
DESCRIPTION
httppower is a helper program for powerman which enables it to communicate with HTTP based power distribution units. It is run interac-
tively by the powerman daemon.
OPTIONS
-u, --url URL
Set the base URL.
INTERACTIVE COMMANDS
The following commands are accepted at the httppower> prompt:
auth user:pass
Authenticate to the base URL with specified user and password, using ``basic'' HTTP authentication which sends the user and password
over the network in plain text.
seturl URL
Set the base URL. Overrides the command line option.
get [URL-suffix]
Send an HTTP GET to the base URL with the optional URL-suffix appended.
post [URL-suffix] key=val[&key=val]...
Send an HTTP POST to the base URL with the optional URL-suffix appended, and key-value pairs as argument.
FILES
/usr/sbin/httppower
/etc/powerman/powerman.conf
ORIGIN
PowerMan was originally developed by Andrew Uselton on LLNL's Linux clusters. This software is open source and distributed under the terms
of the GNU GPL.
SEE ALSO
powerman(1), powermand(8), httppower(8), plmpower(8), vpcd(8), powerman.conf(5), powerman.dev(5), powerman-devices(7).
http://sourceforge.net/projects/powerman
powerman-2.3.5 2009-02-09 httppower(8)