17 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for srinivas88

Hi, I need to monitor the ip addresses in a server. whenever there is a fluctuation, i need to do some clean up (like restart the server/ reboot the machine) I was able to get a sample cpp program & was able to enhance it to suit my needs. But …

0
169
Member Avatar for Leela2403

I have to run some shell scripts in Windows using Cygwin. I am able to achieve that using %BASH% --login -i "/cygdrive/d/script.sh", where %BASH% is an environment variable in Windows set to C:\cygwin\bin\bash.exe. I have a created a Cygwin environment variable $EXE_PATH = /cygdrive/d/somepath/dir. Inside my script the line is …

0
171
Member Avatar for dharmendra1986

I have a .sh script which is as follows. #/bin/bash ssh uname@111.XXX.111.XXX | mysqldump -u uname -p test_db>/home/dm/Downloads/test.sql # script ended I want to extract the script from the server "111.XXX.111.XXX" and keep it in a server directory but I do not want to log in to the server. So, …

0
160
Member Avatar for dharmendra1986

I have a shell script like as follows #!/bin/bash # Downloading Dumps from the production server. Date=`date +'%d-%m-%y-%H-%M'` BACKDIR=/home/tmp/Backup #IP Address of the Server Host="localhost" #User Name USER="root" #Database Name DBS="test_db" echo "Backing up MySQL databases..." echo "Time: `date`" mysqldump -h $HOST -v --user=$USER --password=$PASS $DBS test_tbl1 test_tble2 ...... > …

0
129
Member Avatar for saamsonn

#!/bin/csh echo -n "Enter a value> " set a = $< echo -n "Enter another value> " set b = $< echo "Doing mathematics> " @ r = $a + $b echo the sum a + b is $r tried runing this script and I keep getting this error report …

0
133
Member Avatar for dekker13

I've completed an assignment which takes a file with records, sorts them, and creates a table with the utility 'latex'. The interesting part is that my scripts runs perfectly on my Mac (Darwin) but it runs slowly with no response (or doesn't work depending on how you look at it) …

0
124
Member Avatar for muthu1802

Shel scrip to create automatic ROLLBACK statements for DDL's and put it into a separate file DDL's FILE Content ------------------ name:xyz ------------------------ --table 1 DROP table <tablename>; create table <tablename>;

0
121
Member Avatar for dineshkongonda

how we can use getch function in shell script to use scan code

0
78
Member Avatar for Staric

I was dragging and dropping flv files onto this bat file so I could watch in fullscreen on my second monitor:[CODE]set vlcPath="C:\Program Files\VideoLAN\VLC\vlc.exe" %vlcPath% %1 --video-x=1366 --video-y=768 --width=300 --height=300 --fullscreen --no-video-title-show --no-embedded-video --no-qt-fs-controller[/CODE] but would rather write a batch file with a menu so I could simply select the video …

0
147
Member Avatar for mkab

Hello everyone. I am to program a simple shell in C for my project. So far my shell can execute simple commands and now I want to implement enviroment variables. I looked up on how to use the getenv, setenv, putenv. So far so good i've tried to use the …

0
155
Member Avatar for nikita.

Hi I have written the below code for ftp transfer. can u please help me how to trap whether it is successful or not. [code]ftp -n `awk '$1 ~ /db_server_IP/ { print $3 }' $CONFIG_FILE` <<END quote USER `awk '$1 ~ /db_user/ { print $3 }' $CONFIG_FILE` quote PASS `awk …

0
146
Member Avatar for manish250

Hi all, I am creating a Rpm .even i have built it.while i am calling my post install script it not prompting the user to enter the input while i am using the read command to take the input.I have read from google that we can't make the interactive RPM's …

0
85
Member Avatar for y2kshane

how to get target path of a shortcut what i want to do - user drag and drop shortcut to the form(i know how to handle drag and drop) . shortcut path have to store in a string plz help me when i google i found codes to do this …

0
123
Member Avatar for raigs

[CODE]myuser@linux:~/Desktop$ gcc -nostdlib -Wl,-dynamic-linker,/home/myuser/Desktop/ld-linux-x86-64.so.2,-rpath,/home/myuser/Desktop libc.so.6 libgcc_s.so.1 simple.c myuser@linux:~/Desktop$ ldd a.out linux-vdso.so.1 => (0x00007fffbf5ff000) libc.so.6 => /home/myuser/Desktop/libc.so.6 (0x00007f308b7ae000) libgcc_s.so.1 => /home/myuser/Desktop/libgcc_s.so.1 (0x00007f308b598000) /home/myuser/Desktop/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f308bb11000) myuser@linux:~/Desktop$ [/CODE] Which ld is being used, the one on the Desktop or the one in /lib64 ? What options do I have to use …

0
108
Member Avatar for alwaz on9

Hi all, I was asked to write a shell program in c in unix....basically what i would like to include are the use of dup2 to implement redirection ( < or >) and the use of dup2() and the pipe() system call to implement the '|' symbol on the command …

0
155
Member Avatar for rhuffman8

I am working on a project using HTML, PHP, and LINUX shell commands to create a dynamic web page but I seem to be having some trouble figuring out how to run the .cgi file with the shell commands in it using either HTML or PHP (if they are both …

0
120
Member Avatar for sansogam

Big prize shell script competition on Topcoder Given below is the link for the same [url]http://software.topcoder.com/review/actions/ViewProjectDetails.do?method=viewProjectDetails&pid=30011725[/url]

0
122

The End.