Request help with C/C++, Perl, PHP, Python, Ruby, Bash Scripts, or other Linux programming/scripting related issues
I have written this simple little script, and it seems to work OK. My problem is getting the ti variable's value calculated within the bc command to...
Hello! I am new to bash programming, and I have messed around with integers and matrices, but I am curious if doubles can be used. lets say I have a...
Hello,
I am planning to modify a GPL source code to include my proprietary interface calls. These calls will be implemented in a separate file which...
hi all,
I am trying to replace all words containing underscore(s) using sed but I cannot. Every word containing underscores should be replaced...
I am designing a Web page with two databases. I have connected to a db using php and mysql. The page has two drop down boxes. They should obtain...
We are having this issue with logwatch. it is part of a cron daily called 0logwatch.pl. We keep getting the following message;
print() on unopened...
I use Puppy 5.6.0.
I would like to do some Linux programming.
I have experience with 32 bit assembly and C programming with Windows.
I would...
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>...
Hi,
When we are using RAM DISK - the files are stored on the RAM.
from what I understand (and saw many examples) in order to read data from file...
Hello;
I'm having a problem figuring out the right syntax for calling a pointer to a function with just a single pointer to function from inside a...
Hello!
I'am kind a new in Linux, but i got job to do. So I'am ready to learn.
I am using mRemoteNG in windows 8, but i faced problem when I...
Hey,
I'm pretty new to Linux/C programming and I have a problem with the following code:
#include <stdio.h>
#include <string.h>
#include...
Scenario:
We are trying to set up a script that will run from an Amazon EC2 instance that will grab all incoming files that come through an FTP on...
Script output
Script code:
echo "-----------Select (em) or (e) or (cm)---------"
read dom
if ;then
mplayer sshfs/Hudba/*
exit
Hello,
i have command:
find . -name 'mysqlpwreset.php' -type f -print0 | xargs -0 sed -i 's|hereisthepassword|$newpw)|g'
the external...
Hi
I am hoping someone can give me some information about the AHCI implementation in Linux. I am a hardware engineer and don't have much...
I have a pretty basic program that uses glib and SDL. I compiles nice & easy on my vintage linux box.
I'd like to take the source code over to my...
echo "Run vzmigrate (m) or run vzdump (d) now? or any other key to continue."
read vmsbckp
if ;then
./root/vzmigrate
fi
if ;then...
Hi, im just creating script, that will check max filesize before copying.
Testing filesize is exactly 45MB created by:
dd if=/dev/zero...
Hi,
probably this is too easy but i just started playing around with awk and can't figure this out. Say I have a file with these two lines