Search Results

Search: Posts Made By: JCR
2,663
Posted By JCR
I have actually realized that my version of vim...
I have actually realized that my version of vim was the default one of my Centos 5 distrob. I installed vim from source and I can now use the :bn command and so on
2,663
Posted By JCR
vi next buffer
Hello,

I am using vi to edit file

vi filea
:e fileb

and :e# to switch between filea and fileb

Now, I'd like to have many files open at the same time and have a way to cycle between them....
2,509
Posted By JCR
I got: data Infocom game data (Z-machine 73,...
I got:
data
Infocom game data (Z-machine 73, Release 13058 / Serial 40Hz S)
Infocom game data (Z-machine 73, Release 13058 / Serial 000Hz )

Thanks!
2,509
Posted By JCR
Check file is mp3
Hello,

I am trying to check if a file is an mp3.
file -b file_path g
ives me AUDIO for many MP3 but there are many working MP3 files that return something else. How can I get better result?
...
Forum: Programming 06-09-2010
4,377
Posted By JCR
Hello, My mistake of using continue and not...
Hello,
My mistake of using continue and not taking care of those children properly has taken supervisord down as supervisord could not access the socket, which was already used by a program...
Forum: Programming 06-08-2010
4,377
Posted By JCR
It is a fastcgi program that interacts with a...
It is a fastcgi program that interacts with a nginx webserver through a socket. I am using supervisord to spawn instances of this progam.
The number of loops could be infinite.
Forum: Programming 06-08-2010
4,377
Posted By JCR
You'r right. 100% right. I should call exit(1)...
You'r right. 100% right. I should call exit(1) instead of continue. At that point, right after this exit, isn't the child process killed? If the child process is killed why would I need a way to...
Forum: Programming 06-08-2010
4,377
Posted By JCR
Thanks! I like the strategy. I am putting those...
Thanks! I like the strategy. I am putting those codes inside a fastcgi program:


int main(void)
{
initialize();
while (FCGI_Accept() >= 0)
{
pid_t pid = fork();
if(pid < 0)...
Forum: Programming 06-08-2010
4,377
Posted By JCR
C function to start process but to return right away
Hello,

I am using C on a Centos box with gcc as the compiler.

I want a function to do something, them make an http request to some server (most probably using curl but suggestions are welcome)...
Forum: Web Development 05-29-2010
3,854
Posted By JCR
Copy and forward apache http request
Hello,

I am using apache 2.2 and I need to have certain http requests (those including example.com for instance) to be executed normally and forwarded to another server.

With mod_rewrite, I...
2,438
Posted By JCR
check file is a proper flv
Hello,

On a linux server (centos 5.4), users upload file that should be flv. How can I check that the file is a real and proper flv file? Checking the extension is not enough!

Thanks
5,186
Posted By JCR
du only zip files
Hello,

I need to know how much space zip files take within a hierarchy of directories.
du -hs *.zip does not work.
du -hsc --exclude *.jpg gave me an idea but it is not quite right as there are...
16,719
Posted By JCR
Very nice ! thank you very much
Very nice !
thank you very much
16,719
Posted By JCR
VIM add white spaces
Hello,

How do I adda two whitespaces at the begining of each lines between line 12 and line 90;

something like :12,90 ???

Thanks!
2,269
Posted By JCR
issue with PATH
hello

On Debian Lenny, I first ran apt-get install git-core and then removed it to install from source. The trouble is that when I typed git --version, I am get:
-bash: /usr/bin/git: No such file...
Forum: Programming 08-04-2009
1,647
Posted By JCR
insurance and code development
Hello,

Hopefully, this is the right section.

I am starting writing codes for clients on my own account. A bit like a free-lance programmer. Should I take an insurance to protect me in case a...
4,258
Posted By JCR
Hi Cero, Thank you very much; I did not know...
Hi Cero,
Thank you very much; I did not know those commands.

a.out is actually a fastcgi program and I need to kill every running processes of that program. Would
fuser -k /a/a.out
do the...
4,258
Posted By JCR
find pid of process run in specific location
Hello,

I have a process a.out that runs from /a and /b
How can I get the pid of the one running from /a
ps -C /a/a.out
does not work

Thanks!
Forum: Programming 05-18-2009
2,879
Posted By JCR
issue with fastcgi program
Hello,

I am strugglign with the following fastcgi C++ program with access to a postgresql database through the SOCI library. All the components work individually properlyy but the combination does...
1,688
Posted By JCR
a few questions about procmail
Hello,

I am running a email server on Centos 5.3 (dovecot, postfix, with emails for a few domains) and I am wondering whether I am using procmail or not.

I know procmail is installed because ...
1,836
Posted By JCR
I solved the issue by installing Ubuntu on the...
I solved the issue by installing Ubuntu on the windows machine (using virtualbox) and I can now read the email. I am still unclear as to why I could not read those files on a windows machine but,...
1,836
Posted By JCR
procmail, backup, ftp
Hello,

On a remote server with Centos 5.0, I am running procmail
At /var/mail/vhosts/, I can find all the accounts and I was thinking of saving those files on my local machine using ftp.
The...
70,581
Posted By JCR
ls exclude pattern
Hello,

With ls *.html I am getting all the files ending with html; what would be the best why to get all the files not ending with html?

Thanks
1,537
Posted By JCR
several crontab files
Hello.
I am using the /etc/crontab files and it works well.
I'd like to add the files located at
/test/crontab

Is there a way to register that /test/crontab? Should I add a special line to the...
14,151
Posted By JCR
Thank you for the answer. How do I create a new...
Thank you for the answer. How do I create a new set of keys with ssh-keygen under he apache user? Do I need to login as apache? I am not sure where to find the password.
Showing results 1 to 25 of 52

 
All times are GMT -4. The time now is 05:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy