12-09-2014
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all, I have a bash function that opens Safari (I'm on OS X) with a specified argument.
Here it is :
function safari
{
#Safari bash function
TLDS=( "http://www." ".com" ".org" ".net" ".gov" ".edu" )
if ; then
open -a Safari ${TLDS}$2${TLDS}
elif ; then
open -a Safari... (0 Replies)
Discussion started by: inquen
0 Replies
2. Shell Programming and Scripting
Hi,
root@server] df -h
121G 14G 101G 12% /home
147G 126G 14G 91% /backup
We having our site files and images are storing in
/backup/home/user/files/ through symbolic link created in /home directory pointing in /backup directory as following.
root@server] cd /home... (1 Reply)
Discussion started by: mirfan
1 Replies
3. Programming
# include <stdio.h>
# include <fcntl.h>
# include <stdlib.h>
# include <sys/stat.h>
int main(int argc, char *argv)
{
int fRead, fPadded, padVal;
int btRead;
int BUFFSIZE = 512;
char buff;
if (argc != 4)
{
printf ("Please provide all of the... (3 Replies)
Discussion started by: naranja18she
3 Replies
4. Shell Programming and Scripting
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies
5. Shell Programming and Scripting
I'm putting together a script that will search my mail archives for emails that meet certain criteria and output the files to a text file.
I can manually cat that text file and pipe it into sendmail and it will work (i.e. cat /pathtofile/foo.txt | sendmail -t me@company.com)
My script sends... (7 Replies)
Discussion started by: binary-ninja
7 Replies
6. Shell Programming and Scripting
I have trouble getting this logic to work
#!/bin/bash
function assign_var(){
while
do
read -p "$2 :" $3
done
}
assign_var '$IPADDRESS' ipaddress IPADDRESS
Basicly, i want to make sure that entry is made (i can add more sophisticated checks later), but the idea is to recycle... (11 Replies)
Discussion started by: serverchief
11 Replies
7. Shell Programming and Scripting
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies
8. Shell Programming and Scripting
Hello people!
I would like to create one script following this stage
I have one directory with 100 files
File001
File002
...
File100
(This is the format of content of the 100 files)
2012/03/10 12:56:50:221875936 1292800448912 12345 0x00 0x04 0
then I have one... (0 Replies)
Discussion started by: Abv_mx81
0 Replies
9. UNIX for Dummies Questions & Answers
How to use MAN to find information about read() and write() function ?
The command "man read" show some rubbish, for example "man open" show great information about function I need. (2 Replies)
Discussion started by: bbqtoss
2 Replies
10. Shell Programming and Scripting
Hello,
Below I try to control that the input is good an IP :
#!/bin/bash
cp /home/scripts/choice_interfaces.txt /home/scripts/interfaces.txt
chmod 644 /home/scripts/interfaces.txt
echo -e "Please enter the network informations into the /etc/network/interfaces file, complete them below... (9 Replies)
Discussion started by: Arnaudh78
9 Replies
LEARN ABOUT DEBIAN
read2exp
scf2read(3) Staden Package scf2read(3)
NAME
scf2read, read2scf, exp2read, read2exp - Translate to and from the Read structure.
SYNOPSIS
#include <Read.h>
Read *scf2read(
Scf *scf);
Scf *read2scf(
Read *read);
Exp_info *read2exp(
Read *read,
char *EN);
Read *exp2read(
Exp_info *e);
DESCRIPTION
These functions are used internally by the io library for converting between the in memory representations of the supported file formats.
The Read structure is the central format so only conversion to and from this structure is available. Conversions consist of to and from the
SCF format and to and from the Experiment File format.
scf2read() converts an Scf structure into a Read structure. The Read structure is allocated by the function. The Scf structure is left
unchanged.
read2scf() converts a Read structure into an Scf structure. The Scf structure is allocated by the function. The Read structure is left
unchanged.
exp2read() converts an Exp_info structure into a Read structure. The entryname to use in the EN line type of the Experiment File must be
specified. The Read structure is allocated by the function. The Exp_info structure is left unchanged.
read2exp() converts a Read structure into an Exp_info structure. The Exp_info structure is allocated by the function. The Read structure is
left unchanged.
RETURN VALUES
On successful completion, the scf2read() and exp2read functions return a pointer to an allocated Read structure. Otherwise these functions
return NULLRead.
On successful completion, the read2scf function returns a pointer to an allocated Scf structure. Otherwise this function returns a null
pointer.
On successful completion, the read2exp function returns a pointer to an allocated Exp_info structure. Otherwise this function returns a
null pointer.
SEE ALSO
read_reading(3), fread_reading(3), write_reading(3), fwrite_reading(3), scf(4), ExperimentFile(4)
scf2read(3)