10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How do a user login with full user-environment preset to Bash shell then automatically do path modification with few script codes, either on command-line or put it in a script file.
what i tried:
bash --login -c PATH="/ANewPath:${PATH}"
bash --login -c 'PATH="/ANewPath:${PATH}"; export PATH'... (2 Replies)
Discussion started by: abdulbadii
2 Replies
2. Shell Programming and Scripting
so I'm using this shell script someone made to backup data on a server in an archive (gpg encrypted) and upload to an FTP (meant to be run as a cron job daily). can one of the experts here confirm if the script is fine?
It is meant to backup the folder /opt and the sql data
i want to know how I... (9 Replies)
Discussion started by: galapagos8000
9 Replies
3. OS X (Apple)
This example shows last mtime from epoch
$ stat -f %m somefile
752911565
But would like to see it like that:
199311100606.05 (2 Replies)
Discussion started by: Tribe
2 Replies
4. Shell Programming and Scripting
Hi,
I have below script, i want to monitor that that ntp server listed in setting is under sync or not. I wrote below script but it is not working properly.
Here are problems, first it should server under sync if "*" shows and rest if shows "+" it means it is next server in waiting list.... (4 Replies)
Discussion started by: learnbash
4 Replies
5. Shell Programming and Scripting
Hi ...programmers...
I need a shell script to perform some specific task..
my txt file looks like this
netcdf new {
dimensions:
XAX1_11 = 11 ;
variables:
double XAX1_11(XAX1_11) ;
XAX1_11:point_spacing = "even" ;
XAX1_11:axis = "X" ;
float DEPTH(XAX1_11) ;... (19 Replies)
Discussion started by: Akshay Hegde
19 Replies
6. Shell Programming and Scripting
Hello Team,
I have prepared script which will check for listening message for ports 1199,1200 and 1201. I need modifcation in script in such a way that if port 1200 is not listening then it should message rmi port 1200 is not listening. Smap for port 1199 and 1201.
kindly guide me to acheive... (4 Replies)
Discussion started by: coolguyamy
4 Replies
7. Shell Programming and Scripting
Hi All
I have files contains rows which look like this:
2 20090721_16:58:47.173 JSUD2 JD1M1 20 IAM 966591835270 249918113182 b 3610 ACM b 3614 ACM b 3713 CPG b 3717 CPG f 5799 REL b 5815 RLC b 5817 RLC :COMMA: NCI=00,FCI=6101,CPC=0A,TMR=00,OFI=00,USI: :COMMB: BCI=1234: :RELCAUSE:10:
... (1 Reply)
Discussion started by: zanetti321
1 Replies
8. UNIX for Dummies Questions & Answers
Hello everyone,
I would like to know how to compare two files and modify any differences with some other data using shell script.
I think it would be better understood with an example.
I got two files named 'filex' and filey'. 'filex' is constant file without any changes in data. 'filey' is... (2 Replies)
Discussion started by: maddy81
2 Replies
9. Shell Programming and Scripting
hi Friends,
iam trying to write a script which will grep the particular entry in crontab of root and enable/disable it .iam a novice in scripting. your suggestions are most welcome..please help
Cheers!! (4 Replies)
Discussion started by: munishdh
4 Replies
10. UNIX for Dummies Questions & Answers
Hi i have a ques in Shell scripting:
ques: accept a filename as a command line argument. Validate the input and display the last modification date for that file.
Help pls. (4 Replies)
Discussion started by: onlyc
4 Replies