I'm trying to connect to Sybase database from the web server using UnixODBC.
Sybase is installed on windows server while the web server is on Unix Server.
In order to connect to Sybase I'm using UnixODBC which requires the file libdbodbc.so for Sybase I'm trying to locate this file but I'm unable to find it anywhere.
Anyone can tell ...
Hi,
I'm very new to shell scripting and i've been struggling with the following shell script. I'm posting the script and the commands i used below for your consideration please help me with the mistake i made.
#
#
#
DBG=0
RLS=0
ALL=0
CLN=0
print_help_uu()
{
echo "Usage: $0 -D -R -A -C ";
echo "Where -C clean the deb...
How do you express a byte sequence from the command line?
i.e like you would in PHP with the following:
<?php
echo "\xC2\xA3"
usage: for passing a Unicode string to a script or program. The above example is the UK pound sign "£"
...
I am migrating a LynxOS program to an ubuntu distribution and gcc 4.1.3
I am almost done but I have a problem, I am receiving SIGALRM signal which forces my program to exit. I dont know why I am receiving this signals if I am not calling to alarm(x).
I roundabouted this with a sigaction, but my program is not working properly mq_receiv...
I want to have different behavior in a python script, depending on the type of file. I cannot use the filename extension as it may not be present or misleading. I could call the file utility and parse the output, but I would rather use a python builtin for portability.
So is there anything in python that uses heuristics to deduce the ty...
I am joining about 20 files with a total size of 40Gb using the following command.
cat hda1.ntfs-ptcl-img.gz.* > hda1.ntfs-ptcl-img.gz
Just wondering how long this process should usually take as it has been running for some time now.
Thanks.
...
Sorry if this is a naïve question, but let's say I have a Ruby program called processor.rb that begins with data = STDIN.read. If I invoke this program like this
cat textfile.txt | processor.rb
Does STDIN.read wait for cat to pipe the entire textfile.txt in? Or does it assign some indeterminate portion of textfile.txt to the data vari...
I have an application running on Linux, catching signals and reporting them to syslog.
This application frequently reports SIGPIPE events with no apparent reasons
The application is running in the background, as daemon. The signals occur at idle times with no apparent network/socket connections. The application frequently reads from an...
The following statement work at command prompt. But does not work in a cron.
myvar=`date +'%d%m'`; echo $myvar >> append.txt
The cron log shows that only a part of the date statement is run.
How do I use it in a cron?
...
Any way to do this quickly without using a temp variable? Is there a built in function?
Edit: Thanks for the answers guys. Looks like I need to clarify my question but for the most part you guys assumed correctly: There are two files and the filenames names are reversed.
File A has name B-name.file
File B has name A-name.file
I'd l...
How can I check in a PHP script if it's running in a windows or unix environment?
...
I use logger command to log messages to /var/log/messages But How do I use logger to save the standard out, error out messages? Something like this does not work.
grep `date +'%y%m%d'` /var/log/mysqld.log | sed 's/^/computer /' | logger 2> logger
...
If someone knew little about databases and wanted to learn about them from scratch, which database would you recommend learning with and why?
MySQL seems ubiquitous, but are there others that are more modern that have learned lessons from the past, or others that are simply nicer or more logical to work with?
Universal compatibility/li...
Ruby has constants and global variables for stdio.
Namely, the consts STDIN, STDOUT, STDERR, and their variable counterparts, $stdin, $stdout, $stderr.
I understand the difference between a constant and a variable. I know the constants are immutably set to the file descriptors at the moment the script was exec'd.
I also understand tha...
Hi,
Okies, I have successfully installed the XAMPP and added virtual hosts and am able to make database calls and stuff. The problem I am facing is while trying to enable the memcache module.
Currently trying to configure using these links.
http://theindexer.wordpress.com/2008/06/02/installing-a-lamp-stack-on-linux-using-xampp-for-li...
Anybody have a good approach to automate the batch creation of custom-formatted Excel workbooks at a regularly scheduled time or after an event occurs (e.g., file created, table loaded)?
To make things even more interesting, let's further assume that the source data is in a relational database or Unix file, and the results need to be e...
What would be the command to create a reflection effect using ImageMagick which fades out as a gradient. Like shown in http://reflection.corephp.co.uk/gfx/shot.jpg
...
I have a text file (more correctly, a German style CSV file, i.e. semicolon-separated, decimal comma) which has a date and the value of a measurement on each line.
There are stretches of faulty values which I want to remove before further work. I'd like to store these cuts in some script so that my corrections are documented and I can r...
Hello guys!
I have written a program in c, that do some calculations then creates a folder. That folder's owner is the root user. With an other user I am trying to run this c application. I've got this error:
mkdir: lol: Permission denied
Ok, I know this error is ok, because I don't have rights for it, but I have read on the internet...
Hey there !
I'm trying to automate a proces which I have to do over and over again in which I have to parse the output from a shell function, look for 5 different things, and then put them on a file
I know I can match patterns with grep however I don't know how to store the result on a variable so I can use it after :(
I also have to p...