1,891 Topics
| |
I noticed typing in shell like man printf shows a man page entry. Usually there are man pages for each command. I mean man pages are supposed to be for APIs and external interfaces (like g++, etc). How did the internals of say the c standard library functions end up … | |
Is there a method in Linux to monitor a port for activity, then when found, execute a script? For example, when tftp port 69 is accessed, run a script that runs commands? thank you. | |
Hi everyone! I'm trying to write up a linux shell script to automatize the playing of video file collections. Basically, I want to be able to make a script so that, while it's sitting on a specific folder, when I run it, it plays the first unwatched file in the … | |
Howdy People :) I'm a newbie & its my first question here. I've started learning Unix Bourne Shell scripting recently and struggling already :p Can someone PLEASE help me with the following problem. Somehow my script is not working. * Display an initial prompt of the form: Welcome to machine … | |
Hi, I wrote a ruby code that writes to a file: open('file.txt', 'w') {|file| file.write(arr.join("\n")) } when I try to get the number of line counts wc -l file.txt I get the count as 49 instead of 50. How to overcome this? My file might not have a new line … | |
hi there i have an assignment about writing Cshell with some features i m not gonna ask plz gimme the codes or smth. but i need some advice how to start writing it, what to do maybe smn can show me ways to do it , thanks for help here … | |
Dear all, I need your help please I have a batch file on windows. I need to read from a text file a list of file names, the content of the text file is for example filename1;filename2;filename3 Then, i need to verify in a directory that is an input parameter … | |
Hi Through shell script we put a file on remote sever. After putting file on that server it goes into inbox folder and it appends a hash code to file name. So when getting back the same file from inbox folder it is giving me following error. [COLOR="Red"] /inbox/TESTFILE*: No … | |
Hey a question, In my .sh, I've use a solve command, which solves a problem and output it to the terminal. But I need away to save the output into a txt file, to parse through it.... The solve command output first line is Satisfiable or Unsatisfiable and then the … | |
Hi is there any way to run a shell script from a batch file? im new to this and any help is really appreciated. Thanks | |
Frequently we need to copy-paste a code snippet and compile-run it. The problem is that the lines of code are tagged by line number. So what utility to use to elegantly discard the line numbers? | |
hi, i found this site by accident and am giving it a go for some help needed. I am new to linux and am using Debian Lenny at the moment. I am finding that a lot of my tasks can be made a lot simpler and quicker if i just … | |
I have a bunch of text files with different formats that somewhere in the file have email addresses. I would like to be able to parse through any number of these files for email addresses. Here are the types of input: CFO: [email="some_cfo@domain.com"]some_cfo@domain.com[/email] [email="misterman@domain.com"]misterman@domain.com[/email] The Main Man [email="mainman@domain.com"]mainman@domain.com[/email] To take … | |
Hey all, How can we create a new PostgreSQL database using a shell script? | |
Hey all, I wish to execute a shell script on click of a button from a simple html page. How do I do this? Need help!!! Thanx, Shreerang Patwardhan. | |
Hello I would like to make some kind of download manager that you can feed a file of links which it would then download. I can make it work for one at a time but it takes like forever to do them all and my internet connection isn't fully used … | |
I'm writing a shell script for I can launch a program from the terminal using ./AppName but how can i get the return value either 0 or 1 to determine if the program executed correctly | |
Hello, I have been trying to use the ID3tool to organize a list of MP3 files in a windows bat file. I have completed it in bash and I'm trying to convert to batch right now. Anyway, here is my problem: I'm trying to get the album name for the … | |
Hi All, I am trying to execute a [icode]find[/icode] command to retrieve all files of a specific type, e.g. images. Rather than using an OR'd list of suffixes with ~every~ image type, I wrote a small script that returns the mime-type (image, application, executable, etc). The problem is getting it … | |
Hi, I wrote this simple bash script(yeah simple now that its done) and it uses bc - 'The arbitrary precision calculator language' and tr - 'translate or delete characters'. Now the script works, it will take input values and convert them to the proper output values. Now my question is..is … | |
hi i have written a script whose output is getting mailed to me using crontab what i want it to do is mail it to someone else. this is what iam doing. 37 01 24 1 * /usr/local/bin/perl /tpf106/data2/cis_web/cis3/cis3.11/work/rishi/s-branch/perl1/perl/compare.pl | mail -s "file compare output " [email]rishi83@yahoo.in[/email](not real) but [email]rishi83@yahoo.in[/email] … | |
It might be a basic question, but bear with me as google didnt help. I want to create awrapper for cmd.exe that is more comfortable in terms of user interface (I enjoy a lot Konsole in *nix). Right now I have no Idea how to hook to cmd.exe and get … | |
I'm writing a shell script that can take zero to 2 user arguments. I have an if statement to check to see if any arguments were entered and then I have a case to enter the arguments into the correct variables. This all works great. Now, I want to add … | |
Hi folks, Using shell script I'm running two java applications at background. The output of 'ps -ef' is UID PID PPID TTY STIME COMMAND Amar 2388 1 con 15:35:58 /usr/bin/bash Amar 1272 1 con 15:44:29 /cygdrive/c/Program Files/Java/jdk1.6.0_01/bin/java Amar 3972 1 con 15:44:55 /cygdrive/c/Program Files/Java/jdk1.6.0_01/bin/java Amar 1600 2388 con 15:46:12 /usr/bin/ps … | |
Hello Friends, I have a small challenge, i need to motify a shell script designed to monitor an oracle database. It should notify the DBA when the listener & database is down and also notify when there is any error in the alert log. Note: The sendmail feature should not … | |
Dear All, I am using solaris server and RHEL5 server . Please anyone send me a shell script to monitor the server cup and memory utilazation And export that data to a csv file. Regards, pravat | |
Hello everyone. I am trying to write an application that uses OpenGL (with GLFW) for graphics. It is meant to be as portable as possible, and I try not to have direct interface with platform specific things other than through GLFW (I can also use SDL). The problem is that … | |
Write a shell script named displayargs that prints FOUR lines. The first line tells the name that was used to invoke the script, the second line tells how many parameters there were, the third line tells what the last parameter was, and the fourth line tells what the first parameter … | |
Hi, I would like to get the following script to work. The script should search for file that are bigger then 200 and that have been created or modified today! The problem is the comparator == does not work! when i compare the ( $6 == $dat ) i don't … | |
Hi All, Is there an easier way to get the disk space used, file count, and folder count of a parent folder using BASH commands that is faster than using the 'find' and 'du' commands? In short, I want the same information that the Windows Properties window shows when you … |
The End.