scripting

Shell scripting

3rd requirement 3- At the end of the execution, the script must produce a file named report.txt that contains a list of all files in the user's home directory including full path, owner, group and permissions for each file. ...

[Netbeans] - Running scripts on source upload

I'm using Netbeans 6.9 to develop PHP code; testing happens locally on my PC (XAMPP); once done code is uploaded using Netbeans upload facility to the production web server. I recall reading about Netbeans capabilities running scripts when "building" the project, and looking for a primer about it. Particularly I'm looking for some ways ...

shell scripts on windows xp

Hi All, I am college going student, I have unix labs as part of my course. I want to practise shell, perl and some unix commands at home. Is there any way to it on my xp laptop. i dont want to intall whole linux OS on my laptop. is there any way where i can practicse shell scripts, perl scripts and some unix commands frm my windos xp la...

How to handle rsync in bash script to perform data sync backward from the secondary server to the primary server ?

I have two separate physical servers PRIMARY and SECONDARY connected with a ethernet switch of 100 mbps and i want to rsync files from my PRIMARY /home to SECONDARY /home and now after working for two hours in my SECONDARY server i have created some data in /home and so i want again the rsync to transfer the new data back to PRIMARY serv...

How to script gdb? Example add breakpoints, run, what breakpoint did we hit?

Hi I'm trying to create a little unit test with gdb, for a embedded mcu that is controlled by OpenOCD (that gives me control over my target via a gdb server). So I would like to automate this with some basic scripting of gdb, but it is not really working. I would like to write some kind of script for gdb that more or less does this...

How can I know if a character shows on the shell?

I am writing a program with special characters in it. Characters like װאבדג (hebrew). Using some Ubuntu I had handy here I could get them to work inside the X environment (inside gnome-terminal). In rxvt, I get strange characters instead of what I have in the file; and in bare xterm I get some of them. The file itself may be just as si...

How to prevent error pop-up message box for failed program (.exe) when running batch file

I'm running a test script from batch file. Because it is test, the programs are expected to fail once in a while. It is file as long as error code is returned so I can continue and mark specific test as failed. However there is very annoying behavior of executable files under Microsoft Windows - if something fails it pop-ups window lik...