General :: Redirection Rules For "redirect URL" Identifier?
Jan 20, 2010I need to redirect h[URL]But when it gets [URL]eans it's not redirecting with identifier "redirectUrl=".How to rewrite to that as well
View 1 RepliesI need to redirect h[URL]But when it gets [URL]eans it's not redirecting with identifier "redirectUrl=".How to rewrite to that as well
View 1 RepliesI have a program that writes to stdout. Is there a way that I can redirect the output to the linux diff command or do I have to write the output to a file and then compare that. For example I have a bunch of test input files for a program and the corresponding expected output in another set of files. And I'd like to do something like ./program < t1.input | diff t1.expected.
View 3 Replies View RelatedI'm working on some scheduled task script files to keep nightly backups of some of our database information in place, and it's a bit annoying when they blow up. I know how to redirect stdout and stderr to a flat file I can view when I come in, and I know that 2>&1 maps them both to the same file (whatever was named in 1). However, I'm running into some cron-time situations where it's easier to have the two streams together, and other cron-time situations where it's easier to have them separated. I can't really tell which is going to happen; is there some way I could create both kinds of output file for my scripts, so that I've got a std_err only file and an interleaved std_out/std_err file?
Note: I've looked at the 'tee' command, but I don't think it will work for what I'm after. 'tee' appears to only work with stdout; I'm trying to work with stderr.
Every single image i try from opensuse 11.2 on usb stick i have the same error: No devices matches MBR identifier "hex number" Before asking me for fdisk or whatever, my MD5 sums are all right and i tried both unetbootin and "dd if=path of=usb_path" methods.
View 1 Replies View RelatedI need to create filename 70-android.rules in the directory /etc/udev/rules.d/I have Adm privileges in my user account properties, but when I use sudo to create this file the Ubuntu OS does not allow me the privilege... I am running Ubuntu 10.04 LTS and here's the Terminal output below:daddy@gatomon-laptop:/etc/udev/rules.d$ sudo cat > 70-android.rulesbash: 70-android.rules: Permission denieddaddy@gatomon-laptop:/etc/udev$ ls -ltotal 8drwxr-xr-x 2 root root 4096 2011-03-16 18:03 rules.d-rw-r--r-- 1 root root 218 2010-04-19 04:30 udev.conf
View 2 Replies View RelatedThis is an examination senario. We have mulitple users logging into a RHEL-4 server using putty. These people are part of a same group. They are giving UNIX shell script exam.They are helping each other copy the code by using redirection to /dev/pts/x. Is there any way I can stop this redirection?
View 1 Replies View RelatedUnder what condition port redirection could go useful?
View 2 Replies View RelatedI have a linux script that generates a string and prints it to the console. I want this string to be the name of a file and open it for editing in vi. How can this be done?
View 3 Replies View Related-bash: export: `/usr/java/default': not a valid identifier messages when we login as root to one of our server. This started occurring after a consultant installed software on the server. I have looked around in .bashrc, etc. for the error path so I can remove it, but can't seem to locate it. Does anyone have any tips on how to locate script line where this is being included, and/or trace the login procedure to find the culprit?
View 7 Replies View RelatedWhat's the difference between using > and >>? How can I use both < and > (redirection operators) in a single command?
View 2 Replies View RelatedWe have several HP Thin-Clients of type t5545 in use. We redirect USB-Media to the terminalserver. Because the t5545 runs a debian customized by hp, we can treat it like a debian in some way.First, I'll explain how usb-redirection is configured: automatically mount it to /tmp/tmpfs/media /tmp/tmpfs/media is redirected as disk "Z" via rdesktop-parameter -r disk:sharename=path in case of removed usb-media udev will run a script to umount -l the device and delete the mountpointThe environment:
Thin-Clients run linux: root@mac-addr:/tmp/tmpfs/media# uname -a
Linux mac-addr 2.6.26-2-686 1 SMP Wed Nov 4 20:45:37 UTC 2009 i686 GNU/Linux
Terminalserver runs Windows Server 2008 R2
[code]....
Some context: I'm calling some functions from within a C program and want to measure how long they take to execute. I've done this successfully, calling printf to print the results to the screen. This is reasonably fast. Ideally I'd like these to be dumped to a file, but fprintf presumably has some overhead since it writes to disk? Unless the data is buffered by the kernel and flushed later? What kind of delay can I expect before fprintf returns?
If I redirect the stdout to a file when I instantiate the binary as a process, will calls to printf also experience any overhead from redirection to a file? My aim here is to capture all data in a file, with the minimal amount of coding and effort, but with minimal impact in terms of time overheads for printf calls.
i've checked the link, and it makes it better. but it doesn't include all the information. i'll continue searching the internet. However i have seen an example of creating a fd:
Code:
exec 5<&1
echo "TEST" >&5
exec 5>&-
as in the page, this was intended to redirect the stdout to the fd 5 and create it, and close it. i have the following questions:- what is exactly the meaning of second command? is it to redirect the command stdout "test" to the fd 5? and how i can see the contents of the fd 5? - in the first command, why the < is used instead if > and what is the difference between the below two commands as in the info bash *Redirection section It will be helpful if anyone could include a graph for file descriptor before and after different command execution.
[Code]...
I have users using Windows XP, Windows 7, Linux (Fedora) and Mac. They all are in a single private network and all access internet through a Linux (RHEL5) system in which Squid acts as gateway. The same is true with my branch offices too except that private network is different and gateway system uses Fedora 9 instead of RHEL5. All the branch offices are connected through point to point leased lines with the head office for file transfer.
My requirement is this: I have a web server located at head office. Presently I am able to access this server from my branch offices through internet. I would like to access this server from branch offices through leased lines. This too I am able to access if I do routing in users system. The file transfer is taking place through one to one system at two ends by creating static routing in those systems.
how can I generate unique identifier on centos 5.x I read some thing about using utility such as uuid or uuidgen
View 1 Replies View RelatedI am trying to grep multiple numbers from file, grep does have the -f option for that.
Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with
Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?
I've made a bootable USB with 10.3 live CD. I can boot successfully using a 10.3 live CD as long as the USB stick is not plugged in, but if I try to boot from the USB stick, or from the CD when the USB stick is plugged in, I get "No devices matches MBR identifier: !" where the bit after the colon is 2 spaces followed by the exclamation mark. I've seen this message reported elsewhere but never with a blank for the MBR id.I'm running on a Dell Insprion 9100 with 1.5G RAM.
View 2 Replies View RelatedI need assistance with my Snort Installation. I used Bodhi Zazen's Network Intrusion Detection System post and found it easier than the previous time I had done it. I am currently running Ubuntu 10.04 server and Snort 2.8.6.1 with BASE 1.4.5. I followed Bodhi Zazen's instructions and when I tested snort it ended with a Fatal Error due to ERROR: /etc/snort/rules/exploit.rules(264) => 'fast_pattern' does not take an argument
Fatal Error, Quitting.. Here is the entire output once I ran the test command: snort -c /etc/snort/snort.con -T Running in Test mode
[Code]...
I am looking to understand what would be the optimal or standard way to create a unique id for music files. Something like md5 sum, but taking into consideration that the music files contain some metadata that can be changed.At the end of the day I would like to create a backup database containing all my ratings for the songs. It should be independent from the filename and location.I have seen the libofa, but there does not seem to be much information about it. It is integrated into some GUI tools including Amarok, but they do not do what I want. PUID from Musicbrainz is explicitly closed source based.
View 1 Replies View RelatedI tried to load a simple driver program. I am using RHEL5. When I tried to compile my 'driver.c' program it shows the following error:
[root@jameslee ~]# gcc -c device.c
device.c:1:25: error: linux/module.h: No such file or directory
device.c: In function 'init_module':
device.c:6: error: 'KERN_INFO' undeclared (first use in this function)
device.c:6: error: (Each undeclared identifier is reported only once
device.c:6: error: for each function it appears in.)
device.c:6: error: expected ')' before string constant
device.c: In function 'cleanup_module':
device.c:12: error: 'KERN_INFO' undeclared (first use in this function)
device.c:12: error: expected ')' before string constant
I was going through this Lex/YACC tutorial: [URL]... and I was working along with it. The Lex examples worked fine, but the YACC one quit white compiling
[Code]...
I have installed php-devel successfully prior to go with the installation (yum install php-devel). Here is what I did;
1.wget "url
2.tar xjvf ffmpeg-php-0.6.0.tbz2
3.cd ffmpeg-php-0.6.0
4.phpize
5../configure
6.make
7.make install
code....
I have a little problem installing src2pkg on my linux from stratch system.
I downloaded the package and saved it on /
After that I did cd /usr/libexec/src2pkg/src2pkg-helpers
There I did a sh src2pkg.setup
But now I'm getting this error message :
/usr/libexec/src2pkg/13-make-description: line 438: 'read_pkg_info_desc : not a valid identifier.
Do anyone have any idea what went wrong ?
I am certain that the problem is not with the CD. It can boot on my laptop. It's the RC2 of OpenSuse 11.3 Gnome. When I try to boot on my PC, I get the error "No devices matches MBR identifier: 0x502eadc3".I had some problems when installing Ubuntu, with HDD partitioning because it's SATA3. I tried several things, chandged from IDE to ACHI in Bios, then after it didn't work I simply plugged out all of the Sata cables but still the same. It should be because of Bios settings I guess.I have Gigabyte X58A-UD3R mainboard. Please help, I really love OpenSuse
View 5 Replies View RelatedIn both CentOS 5.5 and FreeBSD 7.4 when I use
Code:
snmpget -v 1 -c public windows_host system.sysDescr.0
I get the remote windows machine system description just fine. But not in ubuntu.
Searching snmp-net FAQ for the erroe message "Unknown Object Identifier", I got this to work around
Code:
snmpget -v 1 -c public 127.0.0.1 SNMPv2-MIB::system.sysDescr.0
But it not worked either.. Searching "MIB" using apt-file search, I installed "snmp-mibs-downloader", and now
Code:
snmpget -v 1 -c public 127.0.0.1 SNMPv2-MIB::system.sysDescr.0
works.. but
Code:
snmpget -v 1 -c public windows_host system.sysDescr.0
still breaks..
Why it works in CentOS and FreeBSD but not in Ubuntu?
I got some error in make
Code:
bash-4.1# ./configure
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
[code]....
Explain the following iptable rules for me?
I understand 1 and 2, 1 creates the new syn_flood chain and 2 redirects all SYN requests to the new syn_flood chain.
I'm having trouble understanding 3 and 4. can someone explain to me in laymen terms the --limit 1/s and --limit-burst 3?
I googled this question, no relevant results. I don't samba, ssh, or any P2P file sharing. Is udp neccesary for general web browsing/file downloading? What would be the best general ufw rules to set for above conditions and varying ip address? I know how to use the full ufw syntax in command line.
View 5 Replies View RelatedDoes anyone know if it is possible to make rules in a Makefile that would work like this:
> make debug module
or
> make module debug
where module can be any module that has a specific rule in the Makefile.
The thing I have is a Makefile with different rules that I compile like this:
> make module
What I would like is to add an option so I can compile whichever module with debug-information just by adding a debug to the make command. The debug-information I know how to do, the problem is how to make the Makefile work...
I want to burn VCD's and DVD's from flash videos that will play in a standalone DVD player but have been unsuccessful at finding the correct combination of conversion choices in DownloadHelper. This is my 3rd or 4th request for help on this. Someone out there must be successful at burning. Avidemux, DeVeDe, and DVDStyler have
View 6 Replies View Related