1,892 Topics

Member Avatar for
Member Avatar for santhoshvkumar

Hi all, I am trying a scenario for calling a shell script when ever a trigger is called. Can some one guide me how to achive this scenario. Also it should passes the value from the table to the shell script. Can some one explain me along with the example. …

Member Avatar for JeoSaurus
0
88
Member Avatar for prathu1

help me to understand the below highlighted: [B][COLOR="Red"]When the login program executes a shell, that [U]shell is uninitialized[/U]. When a shell is uninitialized, important parameters required by the shell to function correctly are not defined.[/COLOR][/B]The shell undergoes a phase called initialization to set up these parameters. This is usually a …

Member Avatar for thekashyap
0
256
Member Avatar for vasuv

Hi, we are having some scheduled jobs.If these jobs runs successfully the files will be arrived into the some specified folder.But some times I am unable to find out the files are not yet arrived. So now i want to write an automation script which will inform you like the …

Member Avatar for griswolf
0
101
Member Avatar for moone009

I believe this should be a very simple task for anyone good at batch scripting. Basically I need a batch script that will run through a directory and produce a text file for me. Directory: D:\SQLBackup If any folder in this directory has more than 145 records I need to …

Member Avatar for moone009
0
86
Member Avatar for vasuv

Hi All, I want to write an automation script, which will send log files of Scheduled jobs via email for every one hour. Please help me out to write a script for this. Thanks.

Member Avatar for thekashyap
0
150
Member Avatar for buster2209

How can I view the TCP/IPv4 setting through the command line for an adaptor that is [I][COLOR="Red"]disabled[/COLOR][/I]. 'ipconfig', 'ipconfig /all', and 'netsh interface ipv4 show addresses' only display the relevant information for an adaptor that is enabled. Thanks in advance!

Member Avatar for rch1231
0
119
Member Avatar for endisbegun

so im just starting to get into the basics of bash scripting yes this is for a class, no i dont want the answer, i want to understand im a networking major, and as such not really big into programming basically i need to make a simple calculator that handles …

Member Avatar for endisbegun
0
72
Member Avatar for SakuraPink

Hi everyone, Here is my problem: I have different data files each with several columns and row of data. datafile1 , datafile2, ... Now I need to do some simple math procedure of this data files, Lets say I need to add the 3rd column of datafile1 to the 2nd …

Member Avatar for Fest3er
0
136
Member Avatar for Labdabeta

I have the following working fine from the command line: [CODE] telnet (my email smtp) 25 helo mail from:(my email address) rcpt to:(my email address) DATA SUBJECT:(my subject) (my message) . [/CODE] This is sending me an email. My problem is that I need to emulate all of this from …

Member Avatar for Labdabeta
0
176
Member Avatar for n3red

Hi, i am still learning i want to make a simple shell script. I wish to make a function that will receive 2 arguments (two dates) and will return all users who logged in during that period, how many times and how long were they logged in. I wish to …

Member Avatar for griswolf
0
364
Member Avatar for egmik3

I am a noob at shell scripting and have been reading up on this topic in random google searches. The only way that I saw that worked was creating a tmpfile. IE: [CODE] crontab -l > $tmpfile edit $tmpfile crontab $tmpfile rm $tmpfile [/CODE] I need a script that will …

Member Avatar for gunasek12
0
7K
Member Avatar for narlapavan

i am working on solaris environment. i want find size of a file on remote system.. i.e at present i am in user1 system, from user1, i want to find size of a file in user2 system ...

Member Avatar for thekashyap
0
66
Member Avatar for tikoti

Hi all, I am really new in bash scripting and I can't even make simple tasks What I am trying to do is executing a command (ls -l for this example), over a double leap ssh. [CODE] #!/bin/bash ssh -T myuser@entrypoint ssh -T myuser@targetpc<<EOI ls -ltr . exit EOI [/CODE] …

Member Avatar for thekashyap
0
251
Member Avatar for arunmag

Hi friends, I just wrote a small batch file that open an application. When it opens that it displays a window with four buttons and by default the cursor in on the firs button. Now I want to click on the second button that browses for the files to open. …

Member Avatar for Batch Devil
0
246
Member Avatar for empyrean

Helo all, I wanted to parse EMBL format like file to fasta. i cannot use bioperl because this is not complete EMBL format. so please suggest me how to get this done.. [CODE] ID 013789-0068 PS TBD OO huringiensis OS ringiensis OX SI 68 RA RL 2010. OKAYAMA UNIVERSITY,JAPAN LAMB …

Member Avatar for thekashyap
0
296
Member Avatar for LanguidLegend

The following is an exercise for my class: [INDENT][COLOR="Green"]Redirect mouse device into a file. sudo cat /dev/input/mice > rawmouse.data Move the mouse a bit and then type CONTROL-C. Note that on some distro's you'll need to sudo to bypass device files' restricted permissions. Now, cat that file to the sound …

Member Avatar for LanguidLegend
0
239
Member Avatar for ajwest85

Im using awk script programming in the END state if i set the for loop i in name it would print out the values of the name array but not the sales array, If i set the for loop i in sales it would print out the values in the …

Member Avatar for thekashyap
0
150
Member Avatar for keeda

Hi, I have a bash script that reads data from a data file and does some processing, due to security reasons, I have to encrypt my data file, how can my bash script handle this? I mean how can my bash script read data from a encrypted file without me …

Member Avatar for thekashyap
0
115
Member Avatar for rkumra

while firing a build through clearmake command i found such message. is the build successful or any error is there?? how to come out from this?? BUILD SUCCESSFUL Total time: 15 minutes 23 seconds *** Error code 1

Member Avatar for thekashyap
0
70
Member Avatar for weblover

Hello everyone i have a text file that contains something like this. [CODE] 1 AC AT RR cOO 2 EE cFF HGB cEVY 3 WDU RWS cTY NBE [/CODE] but it contains a lot of rows and that's an example of the data what i want to do is to …

Member Avatar for weblover
0
139
Member Avatar for vedro-compota

Hi guys! In my makefile I have line - [CODE]gcc -Wall parent.c errmsg.o -o parent[/CODE] What does it mean "Wall" here ? big thanks in advance)

Member Avatar for vedro-compota
0
109
Member Avatar for shroomiin

Hello everybody. I am attempting to write a simple script using a for loop that counts the number of directories, the number of simple files. and the number of symbolic links in the current directory, and then prints this information. The output should look something like... directories: 12 files: 20 …

Member Avatar for thekashyap
0
166
Member Avatar for lu2lu

Hi I wrote a script for class that took one specific file as an input. Ideally, it should be able to take any file as an input. How do I do that? Someone suggested using $@ since is a global variable but I'm kinda confused on how to implement it. …

Member Avatar for lu2lu
0
166
Member Avatar for coding101

I have a directory with a bunch of stuff in it. when you say rm -r "the directory" you have to say yes,yes,yes,......20 times. Is there a script for just having the answer to all "are you sure you want to delete ...?" be yes? any scripting help, im new.

Member Avatar for masijade
0
217
Member Avatar for konefsta

im reading a character given by the user through the keyboard . now ,what is correct : if ($gramma == s) then OR if ($gramma == 's') then where s is supposed to be the character given by the user . if its not any of that whats the correct …

Member Avatar for thekashyap
0
121
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
110
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
166
Member Avatar for kshitij tyagi

Hi.. I am a total newbie to writing scripts. I am trying to execute a program through a script, but I keep getting 'unexpected end of file' error. [ICODE] q=1.170 while [ $q -lt 1.405 ]; do ./a.out $q q = $(($q + 0.005)) done [/ICODE] Please tell me the …

Member Avatar for kshitij tyagi
0
169
Member Avatar for rithish

hello i know only shell use but i dont know to program and where to program iam very interested to study about that please show me some links or books where i have to start .iam a absolute beginner please guide me

Member Avatar for rch1231
0
47
Member Avatar for xxyuri

script to specify the name of the user to be checked, the frequency in seconds at which the script should check. If a checking frequency is not specified, it should default to 60 seconds So far I have got [CODE] frequency=$0 user=$1 #!/bin/sh while [ $* -gt 60 ] do …

Member Avatar for xxyuri
0
209
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
122
Member Avatar for jaango123

Hi All, The command is perfectly working in a Linux machine, but getting a filecopy failed error in windows machine. copy scp://user@ipaddress/sourcefile loca:///destination I guess we have to specify the domain name also in the windows server, as the username is domain/user. Please help. Any other option other than scp.

Member Avatar for jaango123
0
126
Member Avatar for SakuraPink

Hi everyone, Here is my problem: I have different data files each with several columns and row of data. datafile1 , datafile2, ... Now I need to do some simple math procedure of this data files, Lets say I need to add the 3rd column of datafile1 to the 2nd …

Member Avatar for chaosless
0
157
Member Avatar for mkab

Hello everyone. Let's say i have 2 scripts called "fill_cup.sh" and "empty_cup.sh" and i create a 3rd script "cup.sh". How can i run/execute the scripts "fill_cup.sh" and "empty_cup.sh" in the script "cup.sh". I tried with sh fill_cup.sh and ./fill_cup.sh but it doesn't work. for example Script cup.sh #!/bin/sh [CODE]echo enter …

Member Avatar for SakuraPink
0
245
Member Avatar for k2k

Does anyone know how to use awk to print every 3rd line from the 1st line and including the 1st line? 1st .. 3rd .. .. 3rd .. .. 3rd soemthing like this? the closest I could get was below, but it dosn't go beyond the 3rd line.. any ideas? …

Member Avatar for griswolf
0
78
Member Avatar for Kiraichi

me and my team working on a project called Stealth Hunter, Summarize about our project: Stealth Hunter is a thief catcher, It will silently take a snapshot of user using a stolen notebook or pc with webcam and send the information via email. how it work is: The scripts will …

Member Avatar for masijade
0
216
Member Avatar for aditya027

Hi, How good is the TCL scripting language? Is it a hot trend in market? What are the jobs prospectus after learning this language?

Member Avatar for masijade
0
55
Member Avatar for tony75

Hi I have a folder and its contain 5 text files. My question is How can I navigate to folder and read two first line of the txt files in folder with python scripts? I will be very greatful for your help. Reagards Tony

Member Avatar for TrustyTony
0
268
Member Avatar for Straocaste

Hello, I need help making my shell in c. The shell needs to ignore spaces, this means that you can put the spaces you want an the command needs to work, I already resolved that problem, the next problem is that if you put ; two commands need to be …

Member Avatar for rubberman
0
177
Member Avatar for smidhunraj

i havae got a ubuntu machine .I typed in ftp in the command and it comes as ftp> then it ask for connection .I googled it and found that i have to give an address for it. Under one forum i found that the address lies in the /etc/hosts file …

Member Avatar for smidhunraj
0
142
Member Avatar for JonSmith

Hi, Can someone create a short code that will rename a files extension in a sub directory using a command line option -r? So if i have a file a.txt in folder called loc. I enter this "change -r txt doc" and the file will become a.doc in the loc …

Member Avatar for JonSmith
0
180
Member Avatar for bufospro

Hi all, I have a file .c and I would like to format the comments of file like that : /** Comment */ with a sed script The comments in my file is /* comment 1 */ /* comment 2 */ /** comment 3 */ I know to format file …

Member Avatar for thekashyap
0
82
Member Avatar for harish.tiruvile

I dont know shell scripting, It will be great help if someone help me in writing the script for below requirnment Requirnment: I have a file in which sql quires are written.I have to replace content of that file. sql file looks some what like below [CODE] #partial content of …

Member Avatar for thekashyap
0
108
Member Avatar for llocar

Hi. I'm wanting to append some information to a file, which is found in a different file. I have simplified the problem using animals. Here is the basic code to add the line to the file: [CODE]grep "some important info about rabbits" rabbits.data >> rabbits.txt[/CODE] Very simple, but this must …

Member Avatar for llocar
0
125
Member Avatar for gmdune

i, Here is the scenario I'm dealing with: My company has a bunch of old servers and workstations that have data on them that I need to copy to a "drobo" (multi-storage device) and eventually send the storage unit to someone else. I have a list of "contract numbers" that …

Member Avatar for gmdune
0
136
Member Avatar for bufospro

Hi, I use a command with awk in bash shell so as to extract info from a file. [CODE]awk -F'[=,: ]' '{print /uid=/?$4:(/^telephoneN/)?$2:$3}' 1.txt[/CODE] the output is something like aaaa bbbb cccc dddd eeee ffff gggg tttt I would like to write this output in a file 2.xml [CODE]<xml> <name>aaaa</name> …

Member Avatar for bufospro
0
104
Member Avatar for Frankey

Currently i am trying t figure out a simple straight forward way to back-up all the websites on my server to another server, with history/changes ( in a SVN way ). 1. I upload a file to the main server. 2. A second copy goes to the backup server. 3. …

0
88
Member Avatar for pichels

Hi- Was wondering if I could get help with a shell script I am writing to read in 10 -20 directories from a filesystem and then pause, press any key and then read in another 10 or 20 directories and pause again until I read them all. Here is my …

Member Avatar for cfajohnson
0
408
Member Avatar for virtue

Hi, I can not create executable code by using a makefile.How can I generate the executable code.I wrote this lines into my makefile and in the terminal I wrote make but I can not do it.Please help me. myprog : myprog.o mylibrary.o gcc myprog.o mylibrary.o -o myprog myprog.o : myprog.c …

Member Avatar for thekashyap
0
171
Member Avatar for weblover

Hello, i have a problem and need your help i have a text file generated automatically from a script , but the result in the script is not ordered in a readable way, so i need your help to fix it using a shell command the text file contain data …

Member Avatar for griswolf
0
107

The End.