12-22-2008
Thanks guys, but lets assume that I have a really long list, in which case I cannot be assigning variables for all these data values.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies
2. Programming
strcat dumping core in the situation like
main()
{
char* item;
char* p=sat_item;
char type;
item=(char*) malloc(strlen(p));
strncpy(type,p,4);
type='\0';
strcat(item,type); //dumping core
}
I couldn't get why strcat dumping core? (3 Replies)
Discussion started by: satish@123
3 Replies
3. Programming
A question to ask.
seq1 = "eeeeeeeeeeeeeeeeee";
seq2 = "dddddddddddddddddddd";
char a = '*';
strcat(*seq2, &a);
strcat(*seq1, seq2);
compilation
warning: passing arg 1 of `strcat' makes pointer from integer without a cast
thanks (4 Replies)
Discussion started by: cdbug
4 Replies
4. Shell Programming and Scripting
Hello,
I need experts help in converting the below tcl function to korn shell function equivalent.
proc lsNetMaskToBits {mask} {
set dw ; # Top N bits set
set dw 0x ; # Make sure it's hexadecimal, else XOR fails.
puts "lsNetMaskToBits dw $dw"
set dw ; # Complement => low 32-N bits... (1 Reply)
Discussion started by: JackMelson
1 Replies
5. Shell Programming and Scripting
In Windows we use cmd.exe \c as the command SHell
What is its equivalent in UNIX ?
Thanx for all your help. (10 Replies)
Discussion started by: simonsimon
10 Replies
6. Shell Programming and Scripting
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies
7. Programming
Anyone have any ideas why when using strcat function I would get some garbage at the beginning of the output string? what I'm doing is something like the following example.
Code:
char temp;
char tempHolder;
for(int i=0;i<something;i++){
sprintf(temp,"%u ", someVariable);... (2 Replies)
Discussion started by: airon23bball
2 Replies
8. Programming
Hello,
#include <stdio.h>
#include <string.h>
void main()
{
char tab={"12"};
FILE *outfile;
char *outname = "/home/dir/";
printf("%s",strcat(outname,tab));
outfile = fopen(strcat(outname,tab), "w");
if (!outfile) {
printf("There was a problem opening %s for writing\n", outname);
... (2 Replies)
Discussion started by: chercheur857
2 Replies
9. UNIX for Dummies Questions & Answers
I have some matlab code that sends the serial port elements of an array using matlab's fwrite function, e.g.:
fwrite(s, , 'uchar');
What would be a unix shell equivalent? E.g., after successfully accessing the port using instructions here:
Simple terminal serial port program for Linux/MacOSX... (3 Replies)
Discussion started by: darwin_886
3 Replies
10. Shell Programming and Scripting
Hi all,
I am learning POSIX shell programming, and the book I read, uses the let command for integer arithmetic.
I have downloaded and use the shellcheck program on Linux.
This programs says:
In POSIX sh, 'let' is undefined.
See the screenshot attached.
What is the POSIX... (1 Reply)
Discussion started by: johnprogrammer
1 Replies
LEARN ABOUT DEBIAN
config_list
CONFIG_LIST(8) System Manager's Manual CONFIG_LIST(8)
NAME
config_list - Configure a Mailman mailing list from a text file description
SYNOPSIS
config_list [options] listname
DESCRIPTION
This is a very powerful script which lets you view and modify a list's configuration variables from the command line. E.g. you can dump
out all the list options into a plain text file (actually a valid Python file!), complete with comments explaining each variable. Or you
can apply the configuration from such a file to a particular list.
OPTIONS
-i filename, --inputfile=filename
Configure the list by assigning each module-global variable in the file to an attribute on the list object, then saving the list.
The named file is loaded with execfile() and must be legal Python code. Any variable that isn't already an attribute of the list
object is ignored (a warning message is printed). See also the -c option.
A special variable named `mlist' is put into the globals during the execfile, which is bound to the actual MailList object. This
lets you do all manner of bizarre thing to the list object, but BEWARE! Using this can severely (and possibly irreparably) damage
your mailing list!
-o filename, --outputfile=filename
Instead of configuring the list, print out a list's configuration variables in a format suitable for input using this script. In
this way, you can easily capture the configuration settings for a particular list and imprint those settings on another list. file-
name is the file to output the settings to. If filename is `-', standard out is used.
-c, --checkonly
The modified list is not actually changed. Only useful with -i.
-v, --verbose
Print the name of each attribute as it is being changed. Only useful with -i.
-h, --help
Print a small help text and exit
NOTES
The options -o and -i are mutually exclusive.
AUTHOR
Author of Mailman is the Mailman Cabal, see http://www.list.org/ for information. This manpage is written by Tollef Fog Heen
<tfheen@debian.org> for Debian, but may be used by others.
SEE ALSO
Mailman documentation on http://www.list.org/ and in /usr/share/doc/mailman.
2001-03-10 CONFIG_LIST(8)