Search Results

Search: Posts Made By: nrjrasaxena
5,729
Posted By nrjrasaxena
Hi Corona, I tried that long back when I was...
Hi Corona,
I tried that long back when I was working with ubuntu 10.04 . Did not succeed.
Now I have upgraded to 12.04.. possibly, I should try again.

Thanks,

---------- Post updated at...
2,215
Posted By nrjrasaxena
Thanks Lem..:b: ---------- Post updated at...
Thanks Lem..:b:

---------- Post updated at 03:11 PM ---------- Previous update was at 03:05 PM ----------



Hi,
I was trying to plugged in like this:
#!/bin/bash ...
2,215
Posted By nrjrasaxena
Check the presence of file >size?
Hi,
Following script work fine:

#!/bin/bash
FILE=$1...
1,364
Posted By nrjrasaxena
Did not work.. ...
Did not work..

laptop:~/Desktop/CMS/script/ShellScripts$ ./RenameTxt.sh File draft txt
find: `File': No such file or directory
laptop:~/Desktop/CMS/script/ShellScripts$ ls File*
File1.txt ...
1,364
Posted By nrjrasaxena
passing file extension using external variable
Hi,
How can I modify the FILETYPE command ?
I want to provide the file extension, like txt, root .?

Thanks,

#!/bin/bash ...
5,729
Posted By nrjrasaxena
Hey, it worked..:-) Thanks. I just had to ...
Hey,
it worked..:-) Thanks. I just had to install expect..:D
5,729
Posted By nrjrasaxena
Error: bash: ./RemoteFilesv3.sh:...
Error:
bash: ./RemoteFilesv3.sh: /usr/bin/expect: bad interpreter: No such file or directory
5,729
Posted By nrjrasaxena
Something like : But except completely new...
Something like :

But except completely new for me..and it failed to wok.

#!/usr/bin/expect -f ...
5,729
Posted By nrjrasaxena
scp using script
Hi all,
I want to setup scp script for copying files to remote server.
I did google and all refereed expect, but the script failed to work.

Please lead me to some useful link or piece of...
2,032
Posted By nrjrasaxena
Cool..nice deBugging..:b: So if I assume this...
Cool..nice deBugging..:b:
So if I assume this part to be solved. The question remains that the script failed to execute a simple line of command..why..?? No idea !!
2,032
Posted By nrjrasaxena
I used to do it.. But every time I used to make...
I used to do it.. But every time I used to make different directory and cp the content..I always used to forget to change this variable..and I really had hard time dealing with the consequences..:(
...
2,032
Posted By nrjrasaxena
Ohh, Thanks for the explanation. just...
Ohh,
Thanks for the explanation.
just wondering...can I rely this $0 while working with shell script probably?
If not, then what could be the other way to write it in shell script.
BTW,...
2,032
Posted By nrjrasaxena
I just tested that piece of code as script like...
I just tested that piece of code as script like this [1] and the output is [2] just as I want it to be.
It take me back to my working directory.

[1]

SetEnv () {
SCRIPT=`readlink -f $0`
...
2,032
Posted By nrjrasaxena
Hi RudiC, I have to execute it to set the...
Hi RudiC,
I have to execute it to set the correct working environment. A simple test to check it its working is following
...
2,032
Posted By nrjrasaxena
hi corona, I did not understand. I have tested...
hi corona,
I did not understand. I have tested that piece of code. It just cd in the current working directory.
2,032
Posted By nrjrasaxena
comamnds running interactively, failed in script wrigint
Hi all,
I am trying to run these commands in shell script, but there seem to be some mistake. Somehow it is not accepting the last important comamnd "eval `scram runtime -sh`". However, when I try...
2,947
Posted By nrjrasaxena
:):) Perfect...:) Thanks Corona,
:):) Perfect...:)

Thanks Corona,
2,947
Posted By nrjrasaxena
Hi Corona, Thanks for the useful comment. Bu...
Hi Corona,
Thanks for the useful comment. Bu as I understood, If I define the variable in the starting that would be global in scope

#!/bin/bash

#Global variable ??
SAMPLE=$1

Func()
{...
2,947
Posted By nrjrasaxena
It worked..:)
It worked..:)
2,947
Posted By nrjrasaxena
Hi, Thanks Pamu, you are a life saver.:):) ...
Hi,
Thanks Pamu, you are a life saver.:):)

It worked..:b:

---------- Post updated at 09:26 AM ---------- Previous update was at 09:05 AM ----------

Hi Pamu,
I modified it to take second...
2,947
Posted By nrjrasaxena
Hi, It is working. I found a typo..:P :P ...
Hi,
It is working. I found a typo..:P :P

Thanks :)

---------- Post updated 2012-09-24 at 08:39 AM ---------- Previous update was 2012-09-23 at 04:06 PM ----------

Hi Corona,
I wrote a...
2,947
Posted By nrjrasaxena
Hi, Thanks for the reply. I am not sure what...
Hi,
Thanks for the reply. I am not sure what the variable "program" would be. I tried following,

#!/bin/bash ...
2,947
Posted By nrjrasaxena
Script for running root based C++ code
Hi all,
I have to run C++ file using root programming, using following commands:

$root -l
root [0] .L TwoTrees.C++
root [2] TwoTrees t
root [3] t.Loop()
root[4].q



I wonder if I can...
2,161
Posted By nrjrasaxena
Hi tukuyomi, Thanks for the reply ! As I...
Hi tukuyomi,
Thanks for the reply !
As I understood it would work. But I need to provide both argument together. But yeah ECHO would help in recalling as what argument should be text and what...
2,161
Posted By nrjrasaxena
Hi pamu, I am confuse as I want to...
Hi pamu,



I am confuse as I want to use it both ways:

./script.sh 10
And here I want code to understand that it is secondArgument

and also like ./script.sh data_0 where code should...
Showing results 1 to 25 of 111

 
All times are GMT -4. The time now is 01:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy