1,817 Topics

Member Avatar for
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
64
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
248
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
242
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
291
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
234
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
145
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
109
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
67
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
137
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
107
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
164
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
165
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
183
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
118
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
167
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
45
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
206
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
124
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
150
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
242
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
77
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
210
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
53
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
138
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
177
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
79
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
97
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
120
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
134
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
101

The End.