Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cmancre
  • Content: Threads
  • Order by date
  1. cmancre

    FATAL: role "apache" does not exist

    Im new to postgres and im trying to connect to a postgres database through php. This is the error: Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL: role "apache" does not exist in /var/www/localhost/blablabla...
  2. cmancre

    send file into an FTP

    Hello, im doing a bash script and in the middle of that script a need to send a file into a FTP. I dont know where to start.
  3. cmancre

    tar multivolume dvd

    Im with a little problem, i wanna make a simple tar but to create volumes with dvd size.
  4. cmancre

    check file is opened!!!

    This is the situation: cp /path/file /path/file.new <---file got variable MB During the copy (it will take some time) is there a way to check if file.new is completly or not completly copied?
  5. cmancre

    strcat and memory

    code: char *command=(char*)malloc(1024*sizeof(char)); char *tmp=(char*)malloc(10*sizeof(char)); memset(tmp,0,10); tmp = strcat(tmp,"123456789"); . . . fprintf(stdout,"\nbefore %s",tmp); command=strcat(strcat(strcat(var1,var2),var3),var4); fprintf(stdout,"\n%s",command)...
  6. cmancre

    va_arg(ap,char*) and strcat

    code: // n = 2 void fun(int n, ...){ va_list ap; int i; char *arg1 = (char *) malloc(MAX * sizeof(char)); char *arg2 = (char *) malloc(MAX * sizeof(char)); va_start(ap, n); memset(arg1,0,MAX); memset(arg2,0,MAX); arg1 =(char*)va_arg(ap,char*); arg2 =(char*)va_arg(ap,char*)...
  7. cmancre

    IE loop

    hello, i got a problem that i dont know how to solve it. I did an html page, with a drop down menu (li and lu), The page got 2 flash in the page. With the firefox it runs OK, but in the IE the page enters in a infinit loop and the flash never loads. I did run a firefox html validator and i got...
  8. cmancre

    execl

    i did a script in bash and i want to run it with few arguments. #define rr "/path...." execl(rr,"rr",arg1,arg2,arg3,arg4,arg5,arg6,(char *)0); is this correct????
  9. cmancre

    strftime

    code: char buffer[2]={NULL,NULL}; ...// time code and stuff strftime(buffer, 2, "%M", loctime); when i print to stdout the buffer i got trash like @, but like this: char buffer[3]={NULL,NULL,NULL}; ...// time code and stuff strftime(buffer, 3, "%M", loctime); the buffer is OK, i...
  10. cmancre

    fork() & wait()

    Hello code: while(condition){ pID=fork(); if(!pID){ /* do something */ exit(number); } } wait(number); Imagine that my while loop creats 4 childs processes. The execution time of each child are diferent, so child nº2 could end first than child nº1. My...
  11. cmancre

    smbmount to mount

    It is possible to pass this command smbmount to mount smbmount //ip/partition directory/ -o username=user,password=pass
  12. cmancre

    grep word1 or word2

    how can i do something like this: cat file | grep word1 or word2
  13. cmancre

    smbmount erros

    hello anyown knows where i can find a list of all possibles erros of the smbmount command. Thanks
  14. cmancre

    login and bash

    is there a way in bash to validate a login like $/ comand --login=user --pass=yeahright
  15. cmancre

    login and bash

    is there a way in bash to validate a login like $/ comand --login=user --pass=yeahright
  16. cmancre

    awk question

    hello, a got this code that returns me the first colum off the file, but he change colum with space, i want to change colum with another char, like ";" /usr/bin/awk '{ print $0 }' file example: a;b;c;d this will return "a" and not the full line thanks
  17. cmancre

    php and method GET

    i got this code in PHP: echo "x".$_GET["var"]."x"; <-- in the html appears as "xx" then a call for a page with this ...page.php&var=<? echo $_GET["var"]; ?> in the target page i see in the url ....var=%20%20%20%20%20 and when the variable var contains something it shows the...
  18. cmancre

    link mouse style

    Hello, a got an image and when mouse is over it a want to change the mouse style to the own with the "hand", like link style. Thank u.
  19. cmancre

    tar question

    Hello I have a 10 files in a total off 20 mb and i want to create a tar.gz file but with 10 mb volumes. So it will create 2 tar.gz files. Need some help for this job. Thanks
  20. cmancre

    replace file line

    Hello Any one knows how to replace a line in a file at the exact handler position. exemple file: hello handler -> hello hello hello ------------------- replacing with guys will result: hello guys hello ---------------- and not this hello guys hello...

Part and Inventory Search

Back
Top