User Profile

Collapse

Profile Sidebar

Collapse
rajarora
rajarora
Last Activity: May 29 '08, 10:11 AM
Joined: Sep 27 '07
Location: New Delhi
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks. It worked for me. I really appreciate your efforts and heartly thankful to you for solving my problem and also to thescripts.com forums. It really works!!!!

    One question I would like to ask is the mechanism behind this. I know the find command but I am tring to under stand this whole command.

    Regards,
    Raj Kumar Arora...
    See more | Go to post

    Leave a comment:


  • The first option is working only if we provide source and target filename both. I tried it as you said but with single argument that didnt worked. Also the second option is never terminating....
    See more | Go to post

    Leave a comment:


  • Thanks a lot.The option dos2unix is working but its suitable for only some of the files or only few files as for it the source file name and target file name should be different. So I tried to firstly cp/mv all file like this mv *.cc *.cc.old
    or cp *.cc *.cc.old
    which failed because the cp or mv command failed for * wildcard. I cant manually change for each file as I am having a bunch of files.

    Any...
    See more | Go to post

    Leave a comment:


  • strange problem regarding zip/unzip from window to solaris machine

    Hi ,

    I faced a very strange problem when I unzip a zip file on my solaris workstation. Actually I wanted to transfer a folder, say it TEST which contains some sub-folders inside it from windows to solaris machine. So I zipped this folder to TEST.ZIP on my windows machine.

    Then from my windows machine, I started ftp from command prompt and connected to my solaris machine and I copied this TEST.ZIP folder using put command...
    See more | Go to post

  • rajarora
    replied to Calculator
    in C
    The problem in the above code is only due to two functions with same name. Just remove the empty function body of power() to make it working.

    Regards,
    Raj Kumar Arora
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to Calculator problems-
    in C
    Hi ,

    I researched on your Calculate program. The program is having a few errors. Please have a look at the following points:-
    1. A break statement is necessary before case 5. i.e., just after the nested switch finishes.
    2. There is no means to exit the program. I mean you need to assign/choose some specific values of variables choice and chicee also which would exit from the code.
    3. You have declared...
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to Calculator
    in C
    _______________ _______________ _______________
    Hi,

    There is nothing much to do in making this programming running. Here is the running version of the program:


    If there's nothing to it, please give an algorithm, not the answer. We try not to spoonfeed here.

    Regards,
    Raj Kumar Arora...
    See more | Go to post
    Last edited by sicarie; Jan 18 '08, 02:32 PM. Reason: Code removed

    Leave a comment:


  • rajarora
    replied to pipes in C
    in C
    -----------------------------------------
    Hi George,

    Following are certain points in your code which are not correct.
    1. The write() call is not proper.
    2. In case of pipes(), there is not automatic synchronisation between the processes communicating. So its the reasponsibility of programmer for maintaing the proper synchronisation between the processes.


    If you have any more questions then feel free...
    See more | Go to post

    Leave a comment:


  • rajarora
    started a topic alternatives exec() system function
    in C

    alternatives exec() system function

    Hi ,

    Is there anybody who have any idea of any System Function in C/C++ for Sun-Solaris (unix) platform which can serve the alternative of execl() system function.

    Actually I am calling a fork-execl() pair and then making an interprocess communication between these two(parent-child process). But the problem is that somewhere in exec() function which is working on some machines and failing on a few machines.

    ...
    See more | Go to post

  • Hi jonasclown,

    For the purpose, you can use wait() or waitpid() function.

    If you could not get it on then Either try posting with your trial code so that I will be in a better positon to help you or ask me and I will do the same.

    Regards,
    Raj Kumar Arora...
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to ICP shared memory
    in C
    -------------------------------------------
    Hi cavemandave,

    I have also worked on Shared Memory. I diagonised the following problems in your code :-
    1. shmat() returns a pointer to void. So variable "shm" must be of type void pointer. But you declared it as char*.
    2. When a new segment is created, the contents of the segment are initialized with zeros. (relate this point to point 3).
    3. The...
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to different methods of programming rs232
    in C
    Hi weaknessforcats ,

    May be u havent used it since 1975. But for your information, I have worked on Microcontroller s and Embedded Systmes. And during that my experience in 2004-2006, I used this mean of communication for establishing Serial communication between Microcontroller 8051 and PC's com port.

    So I am sure that it is still in use in market.RS422 and RS485 are the similar terms used in conjuction with this RS232....
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to different methods of programming rs232
    in C
    Hi zavid,

    For your query I searched on and find the following link somewhat helpful to you. It is :
    http://hydraulicslab.ucsd.edu/RS232/rs232.htm

    I started my learning on RS232 in a book for 8051microcontro ller by author majidi and majidi. It introduces about RS232 fundaments but not abt the types.

    Regards,
    Raj Kr Arora...
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to Speed and execution of C and C++
    in C
    I dont think that C++ code will be faster than C code. Instead C code is faster than C++ code. Just see the earlier machine/assembly programs are much faster because that contains the statements which directly interfaced with OS system calls. So on same basis, I am saying that.

    Regards,
    Raj Kr Arora
    See more | Go to post

    Leave a comment:


  • Thanks radoulov
    for your reply. I also tries it for my hobby....
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to Switch-Case Statement Help
    Hi,
    Could you please describe some details of the problem. I think only then it will be better reply.
    Regards,
    Raj Kumar Arora...
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to Need Help in Writing Unix Shell scripts
    -------------------------
    Hi Kishor,

    In order to have a starting on shell programming, you can try it with following link:

    http://gd.tuwien.ac.at/linuxcommand.or g/wss0010.html

    It will gives you enough confidance for writing your own scripts too.Once you get it on then for details of shell script programming you can try the following link:-
    http://www.esscc.uq.ed u.au/~ksteube/Bshell/

    ...
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to select column from xml file
    Hi Shiv,

    I can help you. But for that please describe your problem in some detail.

    Regards,
    Raj Kumar Arora
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to Multiple File Inclusion Problem
    Hi ,

    To have a better understanding try the following link. There is really good stuff.

    http://www.gamedev.net/reference/articles/article1798.asp

    If you need some more examples then let me know, I also once puzzeled and so made a few programs which made my confusion clear.

    Regards,
    Raj Kumar Arora
    See more | Go to post

    Leave a comment:


  • rajarora
    replied to New to Unix!!!
    Hi ,

    In order to have a starting on shell programming, you can try it with following link:

    http://gd.tuwien.ac.at/linuxcommand.or g/wss0010.html

    Once you get it on then for details of shell you can try the following link:-
    http://www.esscc.uq.ed u.au/~ksteube/Bshell/

    Hope that gives you some fruitful results,

    Regards,
    Raj Kumar Arora
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...