1,891 Topics

Member Avatar for
Member Avatar for johndoe444

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 …

Member Avatar for gerard4143
0
101
Member Avatar for bulgin

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.

Member Avatar for gerard4143
0
32
Member Avatar for Sheltac

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 …

0
54
Member Avatar for methopoth

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 …

Member Avatar for cfajohnson
0
133
Member Avatar for johndoe444

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 …

Member Avatar for cfajohnson
0
104
Member Avatar for bohongtw

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 …

Member Avatar for Aia
0
170
Member Avatar for Sport Girl

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 …

0
58
Member Avatar for abhay_tanu

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 …

Member Avatar for abhay_tanu
0
234
Member Avatar for .11

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 …

0
49
Member Avatar for outkast

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

Member Avatar for issue9
0
171
Member Avatar for johndoe444

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?

Member Avatar for Skifter
0
241
Member Avatar for copa1x1

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 …

Member Avatar for Skifter
0
193
Member Avatar for i686-linux

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 …

Member Avatar for Skifter
0
1K
Member Avatar for Shreerang
0
44
Member Avatar for Shreerang

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.

Member Avatar for cfajohnson
0
510
Member Avatar for Japus

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 …

Member Avatar for toto10
0
79
Member Avatar for Talguy

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

Member Avatar for cfajohnson
0
54
Member Avatar for Ryman

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 …

Member Avatar for Salem
0
224
Member Avatar for mstone42

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 …

Member Avatar for Simon Tite
0
125
Member Avatar for gerard4143

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 …

Member Avatar for gerard4143
0
387
Member Avatar for wiz83

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] …

Member Avatar for chongopants
0
214
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
769
Member Avatar for cableguy31

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 …

Member Avatar for nvivek
0
162
Member Avatar for ahp@aol.in

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 …

Member Avatar for masijade
0
402
Member Avatar for Whalesola

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 …

Member Avatar for thekashyap
0
198
Member Avatar for pravatkumar

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

Member Avatar for thekashyap
0
120
Member Avatar for Zcool31

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 …

Member Avatar for Zcool31
0
199
Member Avatar for brave2010

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 …

Member Avatar for brave2010
0
113
Member Avatar for Linux777

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 …

Member Avatar for Linux777
0
95
Member Avatar for mstone42

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 …

0
61

The End.