Programming :: Sed.exe Unknown Option To 's'?

Feb 21, 2011

I'm running sed in WinXP on a text file using a script file. Every time I run it I get an unknown option to 's' error:C:Program FilesGnuWin32in>sed -f jagerize.sh input.txt>output.txtsed: file jagerize.sh line 22: unknown option to 's' I've tried two different implementations of sed, with the same result. Deleting the offending line in the script file still produces the same result (as the next line has the same syntax). I'm guessing the problem has something to do with WindowsXP, but I'm a complete newbie with sed and Linux.Here is the script file I am using:

#!/bin/sh
#
# Jagerizer 1.2

[code]...

View 1 Replies


ADVERTISEMENT

Programming :: Unknown Filter Error - Option Rate Unparsable

Feb 21, 2010

I am getting this error "Unknown filter "police", hence option "rate" is unparsable. This is in Linux Kernel 2.6 which is compiled with the "policing" option enabled in Qos (Kernel config). The error seems to be coming from the file tc.c in iproute2/

static int parse_nofopt(struct filter_util *qu, char *fhandle, int argc, char **argv, struct nlmsghdr *n) {
__u32 handle;
if (argc) {
fprintf(stderr, "Unknown filter "%s", hence option "%s" is unparsable
", qu->id, *argv);
return -1;
} if (fhandle) {
struct tcmsg *t = NLMSG_DATA(n);
if (get_u32(&handle, fhandle, 16)) {
fprintf(stderr, "Unparsable filter ID "%s"
", fhandle);
return -1; }
t->tcm_handle = handle; }
return 0; }

This is called from get_filter_kind() which is called from tc_filter_modify(), called from do_filter(), from do_cmd() from main()...all in tc.c. Is this a known "bug" in iproute2+2.6 as the 2.4 Kernel works with the same settings?

View 14 Replies View Related

General :: Making Tar File From Folder - Unknown Option

Aug 6, 2010

I am trying to make my first tar file in linux. I am trying to make a tar file from a folder (with all subfolders and files) and using several commands I got several errors!

This is the tar usage:
tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...

Some of my attempts and responses:
tar -czf itic_glb_cognity-06082010.tar.gz itic-glb-cognity/
response: tar: z: unknown option (not using 'z' again!)
tar -cf itic-glb-cognity-06082010.tar.gz itic-glb-cognity/
response: tar: cannot stat itic-glb-cognity. Not dumped.

The last ones repeats for all the next attempts:
tar -cf itic-glb-cognity-06082010.tar.gz itic-glb-cognity
tar -cf iticglbcognity06082010.tar.gz itic-glb-cognity/
(full path + name without spaces) tar -cf iticglbcognity06082010.tar.gz /epos/webbus/bea/user_projects/domains/itic-glb-cognity

For some of the above a 10kb file was created, where the expected file would be about 250MB. I dont think it has anything to do with the user's rights, because I think I have them all.

View 6 Replies View Related

Ubuntu Servers :: Bind9 Errors: Unknown Option 'zone'

Aug 11, 2010

I am trying to get bind 9 up and running on a new installation of server 10.04 and keep getting errors when starting the daemon -

* /etc/bind/named.conf.local:19: unknown option 'zone'
* /etc/bind/named.conf.local:20: unknown option 'zone'
* /etc/bind/named.conf.default-zones:3: unknown option 'zone'
* /etc/bind/named.conf.default-zones:11: unknown option 'zone'
* /etc/bind/named.conf.default-zones:16: unknown option 'zone'
* /etc/bind/named.conf.default-zones:21: unknown option 'zone'
* /etc/bind/named.conf.default-zones:26: unknown option 'zone'

The onlything I could find after scrubbing the internet is once ina while there's a missing bracket. But I have checked and triple checked my config files and the syntax and can't find anything wrong. I have another installation of bind9 running on Fedora and the same exact syntax works just fine.

[Code]....

View 2 Replies View Related

Software :: LaTeX Error: Unknown Option `spanish' For Package `babel'

May 14, 2010

I am trying to write notes for my Spanish class using LaTeX, but having loaded the spanish - babel package, am getting the following error - firdt I give an example code, then the .log file:

Code:

listfiles
documentclass{article}
usepackage[spanish]{babel}

[code]....

View 8 Replies View Related

Fedora :: Installing GLAME - /home/Ankur-Shailee/Download/glame-2.0.2-rc1/missing: Unknown `--run' Option

Jul 29, 2011

I've downloaded the glame tar from sourceforge.net and m having problems installing it..! tried ./configure - and this is what turns up on my screen...

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/Ankur-Shailee/Download/glame-2.0.2-rc1/missing: Unknown `--run' option
Try `/home/Ankur-Shailee/Download/glame-2.0.2-rc1/missing --help' for more information
configure: WARNING: `missing' script is too old or missing

[code]....

View 6 Replies View Related

Programming :: Error: Unknown Register Name '%eax' In 'asm'?

Mar 15, 2011

An error occur when I compile my inline assemble code with a alpha/linux cross compiler.code:

Code:
#define CPU_ID(cpu_iid)
__asm__ __volatile__ (

[code]....

View 2 Replies View Related

Programming :: C: Sscanf But Number Of Variables Unknown?

Nov 29, 2010

Goal:assign integers into array form string.

From string
"123,456,789,0123,4567,8901" (comma separated 6 integer numbers)
To array

[code]....

View 2 Replies View Related

Programming :: Modprobe Command - Unknown Symbol

Jul 19, 2010

I am working on research using a USB wireless card (WUSB600N) which works by a driver from Ralink (rt3572). In order to achieve my task, I am trying to modify that driver. One of the ways, I tried to call a function written in different module from that which I am working in. Every thing went fine (make & make install) until the modprobe command when i got (Unknown Symbol) about that function. I tried many ways to solve that problem like; Export_Symbol, and function pointers but, with no results!

View 1 Replies View Related

Programming :: C Syntax - Passing In Unknown Number Of Arguments?

May 18, 2009

I need to write a wrapper function around the mvprintw function, like so:

int smvprintw( ? )
{
// Do various checks/modifications on the first two arguments (int y,
int x) first,
// and then
return mvprintw ( ? );
}

How should I write the args for smvprintw so that I can pass all the data correctly to mvprintw, and also do my checks on the first two args (for example, to modify them)? I'm confused by the prototype of mvprintw: This is mvprintw as listed in the man pages:

int mvprintw(int y, int x, const char *fmt, ...);

And this is how I saw it in ncurses.h:

extern NCURSES_EXPORT(int) mvprintw (int,int, const char *,...)

I believe the "..." refers to the unknown number of items after const char * fmt. Will it suffice to do something like "int smvprintw(int y, int x, const char * fmt, void * etc)" and then "mvprintw(y, x, fmt, etc)" inside the function?

View 2 Replies View Related

Programming :: Read Unknown Data Length From Usb Pipe?

Aug 12, 2010

I've written a usb device driver and a program that sends and receives data over the bulk pipe. The read function sometimes returnsI'm reading an unknown amount of data. However, using a usb tracker I can see that the correct data is being sent.The error only occurs sometimes.I expect that the read function is told to read more data that it receives it would fail and return -1, however if this was the case then every read call would fail.

View 4 Replies View Related

Programming :: Script To Find Local IP - Output Unknown Host

Nov 24, 2010

I want to find out my IP and I test this code from beej tutorial:

Code:
char hostname[128];
int i;
struct hostent *he;
struct in_addr **addr_list;
struct in_addr addr;

gethostname(hostname, sizeof hostname);
printf("My hostname: %s
", hostname);
he = gethostbyname(hostname);
if (he == NULL) { // do some error checking
herror("gethostbyname"); // herror(), NOT perror()
return 1;
} // print information about this host:
printf("Official name is: %s
", he->h_name);
printf("IP address: %s
", inet_ntoa(*(struct in_addr*)he->h_addr));
printf("All addresses: ");
addr_list = (struct in_addr **)he->h_addr_list;

for(i = 0; addr_list[i] != NULL; i++) {
printf("%s ", inet_ntoa(*addr_list[i]));
}
printf("
");
return 0;

But my output is this:
Code:
My hostname: vBx
gethostbyname: Unknown host

I heard that it works in windows, why isn't working in linux?

View 1 Replies View Related

CentOS 5 :: PHP Not Working - Blank Page - Get This Warning: Unknown: Failed To Open Stream : Permission Denied In Unknown On Line 0?

May 5, 2010

I tried posting this before and I'm not sure what happened but I don't think it worked, so if it did please forgive the double post.am very very new to centOS and linux in general. I just want to setup a test web server that more closely mirrors our actual web server that is hosted by rackspace. I've installed centOS and tried to setup Apache, PHP and MySQL from a guide on the web using Yum. When I go to localhost in the web browser I'm able to see the default apache page. However when I create a php page it's just blank.When I look at the apache error logs I get this: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

I've been searching alot on the internet and I know the issue is permission related, but I don't know how to fix it. I've seen some forum posts that say you need to use the chmod 775 command on the /var/www/html folder.Currently when I do ls -l /var/www/html it returns

-rw------- 1 root root 19 May 5 13:16 index.php
-rw------- 1 root root 19 May 5 13:15 index.php~

I'm sure that this isn't correct but like I said I don't know much about how to set permissions or who the owner needs to be. I've done alot of searching and seen similar posts, but no one seems to explain it clearly.

View 2 Replies View Related

Programming :: Usually Make Multiple Dir Using -p Option?

Apr 21, 2010

(i) I usually make multiple dir using -p optionex: mkdir -p dicttest/audrep/tdriver/testNow after creating this dir's i stay in current dir instead i want to go directly to test dir how can i acheive this.(ii) When i execute which command as followswhich testerm i will get the location of testterm now i want to open this filewhen i did in this wayhich testterm | vi The file dosent get opened how can i acheive this ?ex:

linuxx86:110$ which testterm
/view/rdl110_linuxx86/vobs_usrrdl/sc/testterm
linuxx86:110$ which testterm| vi

[code]....

View 3 Replies View Related

Programming :: Gcc Error With -mtune Option

Apr 7, 2010

I am trying to compile a hello world program to run on a powerpc processor. I used GCC 4.4.1 from Ubuntu 9.10 on a X86 (PC) platform.

Which value should I use to indicate powerpc architecture?

View 3 Replies View Related

Programming :: [bash] Option Followed By Argument List?

Feb 6, 2010

I'd like to pass the following arguments to a bash script in any order:

Code:
myscript -l <country> -r <file1> <file2> ... -o

I read the argument list in a switch shift loop. I figured out how to read the filelist but only if -f is the last option.

how to position the file list anywhere in the argument list?

View 5 Replies View Related

Programming :: Setting ACL As Mount Option Using Awk And Sed Script

Apr 24, 2010

I am creating a script for making a public folder in linux. The idea behind is to allow any user to write files in this folder and further each of those files can be used by any user. For this purpose I am using acl. This first requires to set acl as mount option in /etc/fstab which I need to do with help of (awk and sed) command available in linux.

The line below is the fstab entry which I need to make change in.
UUID=e9a3db4b-d8c0-40b4-a661-131e13afea1e
/ext3 relatime,errors=remount-ro 0 1

I want my script to identify this line (most probably with / which denotes the mountpoint) and then add (acl,) without brackets in options. Currently I use the command as below
sed 's/realtime/acl,relatime/' /etc/fstab
but the above command is in reference with (realtime) what I am planning is that my script should be able to find the line which has / and then go to options and add acl there.

View 3 Replies View Related

Programming :: Any Option To Make GCC Case Insensitive

Jul 11, 2010

I am working with a third party that use windows to compile. When we port that code I am running into a lot of case issues where the includes are not case sensitive. Is there any option in GCC to make it case insensitive. I know its a long shot, as I have done reading and does not seem so.

View 1 Replies View Related

Programming :: Can't Understand The Value Returned By Semctl Using GETPID Option

Oct 18, 2010

I have got a program using semctl(). I cant understand the value returned by semctl using GETPID option and its difference with the actual pid obtined by getpid()as in the following code:

Code:

int semid,retval;
semid=semget(0*20,1,0666 | IPC_CREAT);
retval = semctl(semid,0,GETPID,0);

[code]....

View 4 Replies View Related

Programming :: Finding G++ Compiler Option To Avoid Forward Declarations

Sep 23, 2010

I am working for a product which was evolved over a decade. There I have some combination of C style coding and C++ coding in same libraries. I am landing on some instances where C style function is expecting forward declarations for some other function for which I can not declare (due to design and architecture). Is there any g++ compiler option that directs the g++ to look whole preprocessed file (because definition is there down in the preprocessed file) than only forward in the preprocessed file. All these years this code is working as we are using CC compiler and that looks entire preprocessed file than only in the forward direction.

<Sample Code
Header1.h file
Function1()
{

[code]....

if I can not include Header2.h first then Header1.h. I have to include Header1.h and Header2.h because on the design hierarchy in this product. Also the function definitions are in header files as they are either template functions or functions expanded through macros.

View 6 Replies View Related

Programming :: Awk - Print A Field When Field Position Is Unknown ?

Mar 28, 2010

I'm trying to display fields from flat files where the first 8 fields are always the same. Fields 9 - n are varied but will contain specific patterns I'm after. I'm using this so far because "mySearch" is on each line I want to examine.

Code:

How would you pattern match and include 2 additional fields above field $9 but change field position from line to line?

View 12 Replies View Related

OpenSUSE Install :: Should There Be Option To Download ISO Option For CD Installation

Jul 18, 2010

when I go to download 11.3 I am presented with the installation medium for a DVD installation with a button that says download DVD. Should there be an option to download an ISO option for a CD installation on this page along with the DVD version? Some of our older machines can only read CD's with a max size of 500+ megs.

View 3 Replies View Related

Ubuntu :: Auto Login Option / Can Undo This Option?

Nov 5, 2010

I installed Maverick with auto login. One could undo this by reinstalling I suppose, but is there an easier way to get back to the standard form of login?Hopefully that will cause my default key ring to unlock correctly.

View 3 Replies View Related

CentOS 5 :: 5.5 Kickstart Option To Remove Encryption Option?

May 25, 2010

We do use kickstart configuration file to customize the CentOS installation. In the partitioning screen, I do see a check box for encryption (encrypting the disk blocks).

I want to remove this checkbox in my kickstart configuration file. What is the option to use to get rid of this checkbox.

View 3 Replies View Related

Programming :: Unable To Use The "-s" Option For Lam Mpi Which Is Used For Loading The Program

Feb 22, 2011

I am using Lam mpi. The problem I am facing is that, I am not able to use the "-s" option for lam mpi which is used for loading the program from a particular node and then using the nodes in the cluster to execute the program.

Now I have to copy instance of the executable to every node for the program to run in the cluster. Is there anyway to load the program from a particular node and then use the cluster nodes in its execution without manually copying the executable to each and every node in the cluster

View 3 Replies View Related

Programming :: Socket Option "IPV6_ROUTER_ALERT" Is Invalid / Why Is So?

Jan 15, 2010

I want router catch the ip packet which mark router alert label, change it and send to the next hop. Not just forward it immediately.
So I set IP_ROUTER_ALERT and IPV6_ROUTER_ALERT option for ipv4 and ipv6 socket. IP_ROUTER_ALERT was just fine and I can do what I expect. However when I set on IPV6_ROUTER_ALERT, it tells me "Protocol not available" (errno = 92). And This option can be found in "$Kernel/net/ipv6/ipv6_sockglue.c"

View 2 Replies View Related

Ubuntu :: Option Domain-name And Option Domain-name-servers Lines Required In Dhcpd.conf?

Feb 16, 2010

Ubuntu Server 9.10I want to set up my dhcp server to also be my DNS server so do I skip these lines or point them at the same server that the config file is on?

View 4 Replies View Related

Server :: Host Unknown Error:Sendmail / Stat=Host Unknown (Name Server: Def-fgh.com.: Host Not Found)?

Sep 8, 2009

Many of mails sent from my mail server that are in Queue;The main reason is deffered by domains like yahoo,aol,etc.but there is one more error that i keep getting and that is Host Unknown,Below is an example from mail log,The catch is,test mail sent on the same email id sent from my personal mail from the same server i.e. url was deliveredHowever,another mail containing client information sent from customercare@mycompanysdomain ended up in queue.

There are more examples of the same,around 20 domain have the same problem.

Sep 7 14:33:46 server2 sendmail[24591]: n8793jiC024589: to=<abc@xyz.fi>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=163672, relay=xyz.fi., dsn=5.1.2, stat=Host unknown (Name server: xyz.fi.: host not found)

Sep 7 22:09:42 server2 sendmail[6407]: n87Gdffa006403: to=<abc@def-fgh.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=152474, relay=def-fgh.com., dsn=5.1.2, stat=Host unknown (Name server: def-fgh.com.: host not found)

View 2 Replies View Related

Programming :: Get "data Type" Of An "unknown Variable" In "C Language"?

Jun 13, 2009

I am going to write a function which will do different operation base on the data type of the input parameter.

I am using C (Pure C, not C++).

The problem is that I do not know how to get the data type of the input parameter in C Language.

Can anyone tell me how to do this.

View 8 Replies View Related

Programming :: What The "-FC" Option Does In G++

Mar 2, 2010

Does anyone know what the "-FC" option does in g++?

I have it in my SConstruct script that builds the command line g++ command, I have searched google

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved